-
Bug
-
Resolution: Done
-
Major
-
1.4.0.Final
-
None
-
False
-
False
-
Undefined
-
-
The create procedure statements couldn't be parsed if BEGIN is prefixed with a label. This wasn't the case for v1.2.4. Here is an example of an sql statement that couldn't be parsed:
CREATE PROCEDURE `p1`() lbl:BEGIN END
If I insert a space after the column it starts to work:
CREATE PROCEDURE `p1`() lbl: BEGIN END
Also if I remove the label it works as well:
CREATE PROCEDURE `p1`() BEGIN END
There is the support of this case in the parser grammar, but it's not clear why it doesn't work anymore. It's suspissios that the parser consumes the first two letters of 'BEGIN': no viable alternative at input 'CREATE PROCEDURE `p1`()\nlbl:BE' and then fails. Maybe it's going down a wrong decision tree.