summaryrefslogtreecommitdiff
path: root/tests/phpunit/data/db/mysql/functions.sql
blob: 9e5e470f59b94f3a631222ff04fd8edd63acbd05 (plain)
1
2
3
4
5
6
7
8
9
10
11
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 //