mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Fixed BUG#7047: Stored procedure crash if alter procedure
by simply disallowing alter procedure/function in an SP (as for drop). mysql-test/r/sp-error.result: Added test case for BUG#7047. mysql-test/t/sp-error.test: Added test case for BUG#7047. sql/share/errmsg.txt: Modified error message for "update procedure/function" too. sql/sql_yacc.yy: Don't allow alter procedure/function in an SP.
This commit is contained in:
@@ -817,6 +817,20 @@ end|
|
||||
drop procedure bug9073|
|
||||
|
||||
|
||||
#
|
||||
# BUG#7047: Stored procedure crash if alter procedure
|
||||
#
|
||||
--error ER_SP_NO_DROP_SP
|
||||
create procedure bug7047()
|
||||
alter procedure bug7047|
|
||||
--error ER_SP_NO_DROP_SP
|
||||
create function bug7047() returns int
|
||||
begin
|
||||
alter function bug7047;
|
||||
return 0;
|
||||
end|
|
||||
|
||||
|
||||
#
|
||||
# BUG#NNNN: New bug synopsis
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user