mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
sp.test:
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user