diff options
Diffstat (limited to 'mysql-test/t/sp-error.test')
-rw-r--r-- | mysql-test/t/sp-error.test | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/mysql-test/t/sp-error.test b/mysql-test/t/sp-error.test index 32c146141b5..46700293578 100644 --- a/mysql-test/t/sp-error.test +++ b/mysql-test/t/sp-error.test @@ -5,7 +5,7 @@ # Make sure we don't have any procedures left. delete from mysql.proc; -# A test "global" procedures, i.e. not belonging to any database. +# A test of "global" procedures, i.e. not belonging to any database. create function .f1() returns int return 1; create procedure .p1() select 1, database(); create procedure p1() select 2, database(); @@ -650,6 +650,22 @@ create procedure bug4344() drop procedure bug4344| --error 1357 create procedure bug4344() drop function bug4344| +# +# BUG#3294: Stored procedure crash if table dropped before use +# (Actually, when an error occurs within an error handler.) +--disable_warnings +drop procedure if exists bug3294| +--enable_warnings +create procedure bug3294() +begin + declare continue handler for sqlexception drop table t5; + drop table t5; +end| + +--error 1051 +call bug3294()| +drop procedure bug3294| + drop table t1| |