Bug #97344 | MySQL Workbench only allows one trigger per event and action time. | ||
---|---|---|---|
Submitted: | 23 Oct 2019 14:45 | Modified: | 24 Oct 2019 12:36 |
Reporter: | Oliver Chattlesworth | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Workbench | Severity: | S7 (Test Cases) |
Version: | 8.0.18 | OS: | Windows (Microsoft Windows 10 Pro) |
Assigned to: | CPU Architecture: | Any | |
Tags: | WBBugReporter |
[23 Oct 2019 14:45]
Oliver Chattlesworth
[23 Oct 2019 14:50]
Oliver Chattlesworth
Creating two triggers doesn't work
Attachment: MySQL Bug 1.png (image/png, text), 8.26 KiB.
[23 Oct 2019 14:51]
Oliver Chattlesworth
Creating one trigger works
Attachment: MySQL Bug 2.png (image/png, text), 7.70 KiB.
[24 Oct 2019 12:36]
MySQL Verification Team
Hello Oliver Chattlesworth, Thank you for the report and feedback. regards, Umesh
[7 Apr 2023 23:59]
Matz Flander
I was able to add second/third triggers once I realized the following; Take Olivers example. Executing: DROP TRIGGER IF EXISTS `test`.`tbl_vendor_BEFORE_UPDATE`; DELIMITER $$ USE `test`$$ CREATE DEFINER = CURRENT_USER TRIGGER `test`.`tbl_vendor_BEFORE_UPDATE` BEFORE UPDATE ON `tbl_vendor` FOR EACH ROW FOLLOWS `tbl_vendor_MODIFIEDBY` -- Problem is right here. -- The newly added trigger definition is incomplete. Everything between BEGIN and END is missing. -- If you add (paste) the code right here, it actually succeeds. Otherwise only the drop succeeds (hence only one trigger remains) -- But this is dangerous. Any DB that uses triggers with FOLLOWS / PRECEDES created from a script and edited with Workbench would be subject to this issue -- As it was in my case. $$ DELIMITER ;