Open svegasoft opened 11 months ago
MariaDB should work the same as MySQL - Yuniql does not support the delimiter value that you set in MySQL Workbench. We found placing the entire procedure or trigger block on one line, yunql worked. You have an extra begin end block that we don't have.
CREATE PROCEDURE test() BEGIN DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN SET @error = 'In SQLEXCEPTION handler'; END; END;
This is not setting a delimiter, DECLARE EXIT HANDLER FOR SQLEXCEPTION is a compound statement supported by MySql with its own BEGIN END and it can be nested inside a stored procedure. Here is a MySql doc reference: https://dev.mysql.com/doc/refman/8.0/en/declare-handler.html
The error message:
SQL script:
I turned on general_log in MariaDB and examining the log could see that this script wasn't sent to the server indicating that the failure occured in yuniql.