You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When comparing two schemas that contain a trigger definition, the comparison fails with an error.
Input SQL
CREATE TABLE `test_trigger` (
`id` int(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TRIGGER BEFORE_UPDATE_test_trigger
BEFORE INSERT
ON test_trigger FOR EACH ROW BEGIN
SET NEW.`id` = NEW.`id` + 10;
END;
Current output
found syntax error when parsing DDL "CREATE TRIGGER BEFORE_UPDATE_test_trigger
BEFORE INSERT
ON test_trigger FOR EACH ROW BEGIN
SET NEW.id = NEW.id + 10": syntax error at position 91 near 'begin'
Expected output
It should parse the trigger definitions
The text was updated successfully, but these errors were encountered:
When comparing two schemas that contain a trigger definition, the comparison fails with an error.
Input SQL
Current output
found syntax error when parsing DDL "CREATE TRIGGER BEFORE_UPDATE_test_trigger
BEFORE INSERT
ON test_trigger FOR EACH ROW BEGIN
SET NEW.
id
= NEW.id
+ 10": syntax error at position 91 near 'begin'Expected output
It should parse the trigger definitions
The text was updated successfully, but these errors were encountered: