Added test case for bug #9565 "Wrong locking in stored procedure if a
sub-sequent procedure is called" which was fixed by the same patch as bug #9597 "read lock stays when querying view from stored procedure".
This commit is contained in:
parent
0f6e1380dc
commit
2564656307
@ -3062,4 +3062,21 @@ l
|
||||
drop procedure bug6063|
|
||||
drop procedure bug7088_1|
|
||||
drop procedure bug7088_2|
|
||||
drop procedure if exists bug9565_sub|
|
||||
drop procedure if exists bug9565|
|
||||
create procedure bug9565_sub()
|
||||
begin
|
||||
select * from t1;
|
||||
end|
|
||||
create procedure bug9565()
|
||||
begin
|
||||
insert into t1 values ("one", 1);
|
||||
call bug9565_sub();
|
||||
end|
|
||||
call bug9565()|
|
||||
id data
|
||||
one 1
|
||||
delete from t1|
|
||||
drop procedure bug9565_sub|
|
||||
drop procedure bug9565|
|
||||
drop table t1,t2;
|
||||
|
@ -3832,6 +3832,28 @@ drop procedure bug6063|
|
||||
drop procedure bug7088_1|
|
||||
drop procedure bug7088_2|
|
||||
|
||||
#
|
||||
# BUG#9565: "Wrong locking in stored procedure if a sub-sequent procedure
|
||||
# is called".
|
||||
#
|
||||
--disable_warnings
|
||||
drop procedure if exists bug9565_sub|
|
||||
drop procedure if exists bug9565|
|
||||
--enable_warnings
|
||||
create procedure bug9565_sub()
|
||||
begin
|
||||
select * from t1;
|
||||
end|
|
||||
create procedure bug9565()
|
||||
begin
|
||||
insert into t1 values ("one", 1);
|
||||
call bug9565_sub();
|
||||
end|
|
||||
call bug9565()|
|
||||
delete from t1|
|
||||
drop procedure bug9565_sub|
|
||||
drop procedure bug9565|
|
||||
|
||||
|
||||
#
|
||||
# BUG#NNNN: New bug synopsis
|
||||
|
Loading…
x
Reference in New Issue
Block a user