mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge
This commit is contained in:
@ -1592,6 +1592,67 @@ call bug3368('yz')|
|
||||
drop procedure bug3368|
|
||||
drop table t3|
|
||||
|
||||
#
|
||||
# BUG#4579
|
||||
#
|
||||
--disable_warnings
|
||||
drop table if exists t3|
|
||||
--enable_warnings
|
||||
create table t3 (f1 int, f2 int);
|
||||
insert into t3 values (1,1);
|
||||
|
||||
create procedure bug4579_1 ()
|
||||
begin
|
||||
declare sf1 int;
|
||||
|
||||
select f1 into sf1 from t3 where f1=1 and f2=1;
|
||||
update t3 set f2 = f2 + 1 where f1=1 and f2=1;
|
||||
call bug4579_2();
|
||||
end|
|
||||
|
||||
create procedure bug4579_2 ()
|
||||
begin
|
||||
end|
|
||||
|
||||
call bug4579_1()|
|
||||
call bug4579_1()|
|
||||
call bug4579_1()|
|
||||
|
||||
drop procedure bug4579_1|
|
||||
drop procedure bug4579_2|
|
||||
drop table t3|
|
||||
|
||||
|
||||
#
|
||||
# BUG#4726
|
||||
#
|
||||
--disable_warnings
|
||||
drop table if exists t3|
|
||||
--enable_warnings
|
||||
|
||||
create table t3 (f1 int, f2 int, f3 int)|
|
||||
insert into t3 values (1,1,1)|
|
||||
|
||||
create procedure bug4726()
|
||||
begin
|
||||
declare tmp_o_id INT;
|
||||
declare tmp_d_id INT default 1;
|
||||
|
||||
while tmp_d_id <= 2 do
|
||||
begin
|
||||
select f1 into tmp_o_id from t3 where f2=1 and f3=1;
|
||||
set tmp_d_id = tmp_d_id + 1;
|
||||
end;
|
||||
end while;
|
||||
end|
|
||||
|
||||
call bug4726()|
|
||||
call bug4726()|
|
||||
call bug4726()|
|
||||
|
||||
drop procedure bug4726|
|
||||
drop table t3|
|
||||
|
||||
|
||||
#
|
||||
# Some "real" examples
|
||||
|
Reference in New Issue
Block a user