2026-09-22 13:56:48 +08:00

15 lines
419 B
Plaintext

--------------
CREATE PROCEDURE t1p(IN p INT)
BEGIN
IF p <> 1 THEN
RETURN;
END IF;
SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'x';
END
--------------
ERROR 1064 (42000) at line 3: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ';
END IF;
SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'x';
END' at line 4