]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - tests/phpunit/data/db/postgres/functions.sql
MediaWiki 1.30.2
[autoinstallsdev/mediawiki.git] / tests / phpunit / data / db / postgres / functions.sql
diff --git a/tests/phpunit/data/db/postgres/functions.sql b/tests/phpunit/data/db/postgres/functions.sql
new file mode 100644 (file)
index 0000000..3086d4d
--- /dev/null
@@ -0,0 +1,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$;