summaryrefslogtreecommitdiff
path: root/tests/phpunit/data/db/postgres/functions.sql
blob: 3086d4d5a6177cfec48620eecbb4c490bc0c0d34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
-- Postgres test file for DatabaseTest::testStoredFunctions()

CREATE FUNCTION mw_test_function()
RETURNS INTEGER
LANGUAGE plpgsql AS
$mw$
DECLARE foo INTEGER;
BEGIN
	foo := 21;
	RETURN foo * 2;
END
$mw$;