mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +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:
@ -457,9 +457,9 @@ ERROR 42S22: Unknown column 'aa' in 'order clause'
|
||||
drop procedure bug2653_1|
|
||||
drop procedure bug2653_2|
|
||||
create procedure bug4344() drop procedure bug4344|
|
||||
ERROR HY000: Can't drop a PROCEDURE from within another stored routine
|
||||
ERROR HY000: Can't drop or alter a PROCEDURE from within another stored routine
|
||||
create procedure bug4344() drop function bug4344|
|
||||
ERROR HY000: Can't drop a FUNCTION from within another stored routine
|
||||
ERROR HY000: Can't drop or alter a FUNCTION from within another stored routine
|
||||
drop procedure if exists bug3294|
|
||||
create procedure bug3294()
|
||||
begin
|
||||
@ -585,4 +585,13 @@ end;
|
||||
end;
|
||||
end|
|
||||
drop procedure bug9073|
|
||||
create procedure bug7047()
|
||||
alter procedure bug7047|
|
||||
ERROR HY000: Can't drop or alter a PROCEDURE from within another stored routine
|
||||
create function bug7047() returns int
|
||||
begin
|
||||
alter function bug7047;
|
||||
return 0;
|
||||
end|
|
||||
ERROR HY000: Can't drop or alter a FUNCTION from within another stored routine
|
||||
drop table t1|
|
||||
|
Reference in New Issue
Block a user