1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00
test case for the fix for bug #2614
sp_head.cc:
  A fix for a crashing bug in stored procedures with INSERT ... SELECT ... (Bug #2514)


sql/sp_head.cc:
  A fix for a crashing bug in stored procedures with INSERT ... SELECT ... (Bug #2514)
mysql-test/t/sp.test:
  test case for the fix for bug #2614
This commit is contained in:
unknown
2004-02-03 16:22:43 +02:00
parent b0bde7ab0e
commit 323bca3380
2 changed files with 19 additions and 6 deletions

View File

@ -1299,7 +1299,20 @@ show create procedure bar|
--replace_column 4 '0000-00-00 00:00:00' 5 '0000-00-00 00:00:00'
show procedure status like 'bar'|
drop procedure bar|
delimiter ;|
drop table t1;
drop table t2;
delimiter |
drop procedure if exists crash|
create procedure crash()
begin
drop table if exists t1;
create table t1 (id int default '0' not null);
insert into t1 select 12;
insert into t1 select * from t1;
end|
delimiter ;
call crash();
call crash();
drop table t1;
drop procedure if exists crash;