Bug #58362 | Unselecting Filter Trigger Not Working | ||
---|---|---|---|
Submitted: | 21 Nov 2010 16:30 | Modified: | 11 Jun 2013 5:54 |
Reporter: | Larry D. Wilson | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Workbench: Modeling | Severity: | S2 (Serious) |
Version: | 5.2.30 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[21 Nov 2010 16:30]
Larry D. Wilson
[21 Nov 2010 17:45]
Valeriy Kravchuk
Thank you for the bug report. Verified as described on Mac OS X.
[21 Nov 2010 20:23]
Peter Laursen
The option to temporarily disable TRIGGERS (completely, for a specific user, session or a single statement) should be a server functionality!
[22 Nov 2010 16:12]
Larry D. Wilson
Two additional comments: 1) Same behavior is confirmed in Ubuntu Desktop 10.10. 2) And more importantly, this is preventing generation of a model with a subset of ANY tables in our production system, and I have yet to find a work-around (other than a Dia, Visio, or OmniGraffle model). There is something mroe to this bug than meets the eye. In produciton, even if I have "Import MySQL Triggers" checked, and select only 1 table with a trigger, I still get the same error message: Owner table for trigger <triggername> was not selected. This does not occur in the test I uploaded with only two tables. To repeat this additional behavior, run the following in the same database as the original test: DELIMITER $$ CREATE TABLE `t3_trigger` (`col1` TINYINT UNSIGNED NULL) PRIMARY KEY(`col1`) ); $$ CREATE TRIGGER `t3_trigger_bi_fer` BEFORE INSERT ON `t3_trigger` FOR EACH ROW BEGIN SET NEW.`col1` = NEW.`col1` + 1; END; $$ Now follow the original steps to create a model, except select only table t3_trigger. It will give you an error that the owner table for t2_trigger_bi_fer was not selected. Based on the severity definition, since there is no work-around and we cannot generate a model (too many tables to generate a single model), this should be set to S1 (Critical).
[11 Jun 2013 5:54]
Philip Olson
Posted by developer: Fixed as of the upcoming MySQL Workbench 6.0.2 release, and here's the changelog entry: Deselected table objects were still evaluated when executing the "EER Model From Existing Database" wizard on a database with triggers. Thank you for the bug report.