Bug #77197 | Valid stored procedure code labelled _SYNTAX_ERROR in Routine Group | ||
---|---|---|---|
Submitted: | 30 May 2015 21:25 | Modified: | 9 Dec 2015 17:38 |
Reporter: | Jack Almeida | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Workbench: Modeling | Severity: | S3 (Non-critical) |
Version: | 6.3.3 | OS: | Windows |
Assigned to: | CPU Architecture: | Any | |
Tags: | Workbench Routine Group _SYNTAX_ERROR |
[30 May 2015 21:25]
Jack Almeida
[31 May 2015 5:22]
MySQL Verification Team
Hello Jack Almeida, Thank you for the report. Thanks, Umesh
[8 Jun 2015 9:43]
Mike Lischke
What version is set for your model. GET [CURRENT] DIAGNOSTICS has been introduced in MySQL 5.6.4. For earlier versions WB will report a syntax error. Currently it only shows that for CURRENT, but should in fact do it for GET, but that's a different problem which has been fixed already.
[8 Jun 2015 9:44]
Mike Lischke
The version can be set in Model -> Model Options which by default inherit the values from the WB preferences, but you can override them for each model individually, if needed.
[8 Jun 2015 19:41]
Jack Almeida
Hi, When I viewed the Model Options->MySQL display, it listed version 5.1 but was greyed-out because the "Use defaults from global settings" checkbox was checked. I unchecked the "Use defaults from global settings" checkbox and changed the "Target MySQL Version" to 5.6 and clicked "OK". After a restart of the Workbench, the routines still show up as having _SYNTAX_ERROR. I also noticed some new problems appearing since changing the "Target MySQL Version" parameter. The "Apply Changes" button for the "SQL Scripts" doesn't enable when you make a change to the script—there isn't a way to save script changes. - Is this a problem because the original model was created with a previous version of the workbench? - Is the file now corrupted? If so, how can I update it to use the newer workbench? Thank you, Jack
[9 Jun 2015 6:56]
Mike Lischke
You don't need to restart WB when changing the options. They will immediately take effect include syntax error check. But you are right, I also saw a different problem there where a procedure with an error was just named _SYNTAX_ERROR, without name part. We will fix this. The Apply/Cancel button problem is known and should be solved with the next release.
[11 Jun 2015 14:25]
Jack Barney
Hi, I rebuilt the model starting with a new mwb file in the newest version of the windows workbench 6.3.3, running on windows 7 pro. Things are better; however, I found that if there is an error in one of your routine_groups, it adds an entry into the Routines area of the model overview labelled <routine_group>_SYNTAX_ERROR<N>. After the error is corrected, the label remains. A new <routine_group>_SYNTAX_ERROR<N> is added every time the model is saved, so you end up with a list of duplicate <routine_group>_SYNTAX_ERROR<N> entries. The work around is to manually delete them from the Routines area of the model overview after fixing the routine_group code. This is the same problem I had with the original file with one exception: in the older file, when I attempted to manually delete the <routine_group>_SYNTAX_ERROR<N> entry from the model overview, it would delete the next valid routine, leaving the <routine_group>_SYNTAX_ERROR<N> entry. This probably should go into a second report, but since upgrading to version 6.3.3, I can't update scripts under "SQL Scripts" in the model overview using the "Apply Changes" and "Discard Changes" buttons, they seem permanently disabled. I create a new script, add some sql, save it, then modify it—neither "Apply Changes" nor "Discard Changes" ever gets enabled. The work around is to resave it and replace the existing file. Thank you.
[11 Jun 2015 14:41]
Mike Lischke
The apply/cancel button problem will be fixed in the next release that is appearing soon. The syntax_error problem needs more time and a fix will not be available anytime soon.
[9 Dec 2015 17:38]
Philip Olson
Posted by developer: Fixed as of the upcoming MySQL Workbench 6.3.6 release, and here's the changelog entry: When adding stored procedures to a Routine Group, Workbench would sometimes append "_SYNTAX_ERROR" to the procedures. Thank you for the bug report.