1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0

into sanja.is.com.ua:/home/bell/mysql/bk/work-show-5.0


BitKeeper/etc/ignore:
  auto-union
This commit is contained in:
unknown
2004-09-10 13:11:33 +03:00
9 changed files with 68 additions and 16 deletions

View File

@ -485,4 +485,13 @@ create procedure bug4344() drop procedure bug4344|
ERROR HY000: Can't drop 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
drop procedure if exists bug3294|
create procedure bug3294()
begin
declare continue handler for sqlexception drop table t5;
drop table t5;
end|
call bug3294()|
ERROR 42S02: Unknown table 't5'
drop procedure bug3294|
drop table t1|

View File

@ -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|