Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
55f0fba4
Commit
55f0fba4
authored
Feb 28, 2008
by
anozdrin/alik@quad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable test case due to Bug#34891: sp_notembedded.test fails
sporadically.
parent
b100bb1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
85 deletions
+65
-85
mysql-test/r/sp_notembedded.result
mysql-test/r/sp_notembedded.result
+0
-23
mysql-test/t/sp_notembedded.test
mysql-test/t/sp_notembedded.test
+65
-62
No files found.
mysql-test/r/sp_notembedded.result
View file @
55f0fba4
...
@@ -208,26 +208,3 @@ GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
...
@@ -208,26 +208,3 @@ GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
drop user mysqltest_1@localhost;
drop user mysqltest_1@localhost;
drop procedure 15298_1;
drop procedure 15298_1;
drop procedure 15298_2;
drop procedure 15298_2;
drop table if exists t1;
drop procedure if exists p1;
create table t1 (value varchar(15));
create procedure p1() update t1 set value='updated' where value='old';
call p1();
insert into t1 (value) values ("old");
select get_lock('b26162',120);
get_lock('b26162',120)
1
select 'rl_acquirer', value from t1 where get_lock('b26162',120);;
set session low_priority_updates=on;
call p1();;
select 'rl_contender', value from t1;
rl_contender value
rl_contender old
select release_lock('b26162');
release_lock('b26162')
1
rl_acquirer value
rl_acquirer old
drop procedure p1;
drop table t1;
set session low_priority_updates=default;
mysql-test/t/sp_notembedded.test
View file @
55f0fba4
...
@@ -268,66 +268,69 @@ drop procedure 15298_1;
...
@@ -268,66 +268,69 @@ drop procedure 15298_1;
drop
procedure
15298_2
;
drop
procedure
15298_2
;
#
#
#
Bug#29936 Stored Procedure DML ignores low_priority_updates setting
#
Test case disabled due to Bug#34891: sp_notembedded.test fails sporadically.
#
#
# #
--
disable_warnings
# # Bug#29936 Stored Procedure DML ignores low_priority_updates setting
drop
table
if
exists
t1
;
# #
drop
procedure
if
exists
p1
;
#
--
enable_warnings
# --disable_warnings
# drop table if exists t1;
create
table
t1
(
value
varchar
(
15
));
# drop procedure if exists p1;
create
procedure
p1
()
update
t1
set
value
=
'updated'
where
value
=
'old'
;
# --enable_warnings
#
# load the procedure into sp cache and execute once
# create table t1 (value varchar(15));
call
p1
();
# create procedure p1() update t1 set value='updated' where value='old';
#
insert
into
t1
(
value
)
values
(
"old"
);
# # load the procedure into sp cache and execute once
# call p1();
connect
(
rl_holder
,
localhost
,
root
,,);
#
connect
(
rl_acquirer
,
localhost
,
root
,,);
# insert into t1 (value) values ("old");
connect
(
rl_contender
,
localhost
,
root
,,);
#
connect
(
rl_wait
,
localhost
,
root
,,);
# connect (rl_holder, localhost, root,,);
# connect (rl_acquirer, localhost, root,,);
connection
rl_holder
;
# connect (rl_contender, localhost, root,,);
select
get_lock
(
'b26162'
,
120
);
# connect (rl_wait, localhost, root,,);
#
connection
rl_acquirer
;
# connection rl_holder;
--
send
select
'rl_acquirer'
,
value
from
t1
where
get_lock
(
'b26162'
,
120
);
# select get_lock('b26162',120);
#
# we must wait till this select opens and locks the tables
# connection rl_acquirer;
connection
rl_wait
;
# --send select 'rl_acquirer', value from t1 where get_lock('b26162',120);
let
$wait_condition
=
#
select
count
(
*
)
=
1
from
information_schema
.
processlist
# # we must wait till this select opens and locks the tables
where
state
=
"User lock"
and
# connection rl_wait;
info
=
"select 'rl_acquirer', value from t1 where get_lock('b26162',120)"
;
# let $wait_condition=
--
source
include
/
wait_condition
.
inc
# select count(*) = 1 from information_schema.processlist
# where state = "User lock" and
connection
default
;
# info = "select 'rl_acquirer', value from t1 where get_lock('b26162',120)";
set
session
low_priority_updates
=
on
;
# --source include/wait_condition.inc
--
send
call
p1
();
#
# connection default;
connection
rl_wait
;
# set session low_priority_updates=on;
let
$wait_condition
=
# --send call p1();
select
count
(
*
)
=
1
from
information_schema
.
processlist
#
where
state
=
"Locked"
and
# connection rl_wait;
info
=
"update t1 set value='updated' where value='old'"
;
# let $wait_condition=
--
source
include
/
wait_condition
.
inc
# select count(*) = 1 from information_schema.processlist
# where state = "Locked" and
connection
rl_contender
;
# info = "update t1 set value='updated' where value='old'";
select
'rl_contender'
,
value
from
t1
;
# --source include/wait_condition.inc
#
connection
rl_holder
;
# connection rl_contender;
select
release_lock
(
'b26162'
);
# select 'rl_contender', value from t1;
#
connection
rl_acquirer
;
# connection rl_holder;
--
reap
# select release_lock('b26162');
connection
default
;
#
--
reap
# connection rl_acquirer;
# --reap
disconnect
rl_holder
;
# connection default;
disconnect
rl_acquirer
;
# --reap
disconnect
rl_wait
;
#
drop
procedure
p1
;
# disconnect rl_holder;
drop
table
t1
;
# disconnect rl_acquirer;
set
session
low_priority_updates
=
default
;
# disconnect rl_wait;
# drop procedure p1;
# drop table t1;
# set session low_priority_updates=default;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment