Loading mysql-test/r/sp-error.result +2 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,8 @@ Warnings: Note 1305 PROCEDURE foo does not exist show create procedure foo| ERROR 42000: PROCEDURE foo does not exist show create function foo| ERROR 42000: FUNCTION foo does not exist create procedure foo() foo: loop leave bar; Loading mysql-test/t/sp-error.test +2 −0 Original line number Diff line number Diff line Loading @@ -81,6 +81,8 @@ call foo()| drop procedure if exists foo| --error 1305 show create procedure foo| --error 1305 show create function foo| # LEAVE/ITERATE/GOTO with no match --error 1308 Loading sql/sql_parse.cc +1 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,7 @@ #define SP_COM_STRING(LP) \ ((LP)->sql_command == SQLCOM_CREATE_SPFUNCTION || \ (LP)->sql_command == SQLCOM_ALTER_FUNCTION || \ (LP)->sql_command == SQLCOM_SHOW_CREATE_FUNC || \ (LP)->sql_command == SQLCOM_DROP_FUNCTION ? \ "FUNCTION" : "PROCEDURE") Loading Loading
mysql-test/r/sp-error.result +2 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,8 @@ Warnings: Note 1305 PROCEDURE foo does not exist show create procedure foo| ERROR 42000: PROCEDURE foo does not exist show create function foo| ERROR 42000: FUNCTION foo does not exist create procedure foo() foo: loop leave bar; Loading
mysql-test/t/sp-error.test +2 −0 Original line number Diff line number Diff line Loading @@ -81,6 +81,8 @@ call foo()| drop procedure if exists foo| --error 1305 show create procedure foo| --error 1305 show create function foo| # LEAVE/ITERATE/GOTO with no match --error 1308 Loading
sql/sql_parse.cc +1 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,7 @@ #define SP_COM_STRING(LP) \ ((LP)->sql_command == SQLCOM_CREATE_SPFUNCTION || \ (LP)->sql_command == SQLCOM_ALTER_FUNCTION || \ (LP)->sql_command == SQLCOM_SHOW_CREATE_FUNC || \ (LP)->sql_command == SQLCOM_DROP_FUNCTION ? \ "FUNCTION" : "PROCEDURE") Loading