Bug #50116 | Can't Create Stored Procedure | ||
---|---|---|---|
Submitted: | 6 Jan 2010 20:23 | Modified: | 27 Jan 2010 12:54 |
Reporter: | Joel Caballero | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Workbench: SQL Editor | Severity: | S3 (Non-critical) |
Version: | 5.2.11 | OS: | MacOS (Mac OS X (10.6.1)) |
Assigned to: | Assigned Account | CPU Architecture: | Any |
Tags: | stored procedure |
[6 Jan 2010 20:23]
Joel Caballero
[14 Jan 2010 9:51]
Susanne Ebrecht
In your procedure you write: END; semicolon ... but $$ is expected here. Is your problem related to the fact that the syntax just is wrong and it needs to be: END$$
[18 Jan 2010 19:30]
Joel Caballero
The syntax is wrong, but it's not mine, I believe it's the template that workbench starts off with.
[19 Jan 2010 12:48]
Susanne Ebrecht
That didn't answer my question. Will you get same error by using correct syntax?
[21 Jan 2010 19:32]
Joel Caballero
Just tested and it did work, however, I had to add '$$' to the end of 'DELIMITER' too. I guess it's not a bug, just counter intuitive?
[22 Jan 2010 11:47]
Susanne Ebrecht
You guessed right. I just looked into Workbench 5.2.14 if routines will get closed correct and they will get closed correct. So there is no bug here at all.
[22 Jan 2010 15:14]
Alfredo Kojima
This is a bug, the // DELIMITERs are being replaced with ; on Apply, which should not happen.
[27 Jan 2010 12:54]
Alfredo Kojima
This is actually a duplicate of bug #49710