community.mysql/tests/integration/mysql_user/files/create-function.sql
2020-07-09 20:39:26 +01:00

8 lines
156 B
SQL

USE foo;
DELIMITER ;;
CREATE FUNCTION `function` () RETURNS tinyint(4)
BEGIN
DECLARE NAME_FOUND tinyint DEFAULT 0;
RETURN NAME_FOUND;
END;;
DELIMITER ;