Commit 32e157ec authored by unknown's avatar unknown

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".


mysql-test/r/sp.result:
  Added test case for bug #9565 "Wrong locking in stored procedure if a
  sub-sequent procedure is called".
mysql-test/t/sp.test:
  Added test case for bug #9565 "Wrong locking in stored procedure if a
  sub-sequent procedure is called".
parent 908ff34e
...@@ -3062,4 +3062,21 @@ l ...@@ -3062,4 +3062,21 @@ l
drop procedure bug6063| drop procedure bug6063|
drop procedure bug7088_1| drop procedure bug7088_1|
drop procedure bug7088_2| 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; drop table t1,t2;
...@@ -3832,6 +3832,28 @@ drop procedure bug6063| ...@@ -3832,6 +3832,28 @@ drop procedure bug6063|
drop procedure bug7088_1| drop procedure bug7088_1|
drop procedure bug7088_2| 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 # BUG#NNNN: New bug synopsis
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment