]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - tests/phpunit/data/db/mysql/functions.sql
MediaWiki 1.30.2
[autoinstallsdev/mediawiki.git] / tests / phpunit / data / db / mysql / functions.sql
diff --git a/tests/phpunit/data/db/mysql/functions.sql b/tests/phpunit/data/db/mysql/functions.sql
new file mode 100644 (file)
index 0000000..9e5e470
--- /dev/null
@@ -0,0 +1,12 @@
+-- MySQL test file for DatabaseTest::testStoredFunctions()
+
+DELIMITER //
+
+CREATE FUNCTION mw_test_function()
+RETURNS int DETERMINISTIC
+BEGIN
+       SET @foo = 21;
+       RETURN @foo * 2;
+END//
+
+DELIMITER //