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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
0187e78f
Commit
0187e78f
authored
Sep 06, 2007
by
davi@moksha.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.1-runtime
into moksha.local:/Users/davi/mysql/push/mysql-5.1-runtime
parents
175c1ab7
4aaab47e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
54 deletions
+54
-54
mysql-test/r/insert_notembedded.result
mysql-test/r/insert_notembedded.result
+19
-0
mysql-test/r/insert_update.result
mysql-test/r/insert_update.result
+0
-19
mysql-test/t/insert_notembedded.test
mysql-test/t/insert_notembedded.test
+35
-0
mysql-test/t/insert_update.test
mysql-test/t/insert_update.test
+0
-35
No files found.
mysql-test/r/insert_notembedded.result
View file @
0187e78f
...
...
@@ -105,3 +105,22 @@ DROP VIEW view_target2;
DROP VIEW view_target3;
DROP USER user20989@localhost;
DROP DATABASE meow;
connection: default
set low_priority_updates=1;
drop table if exists t1;
create table t1 (a int, b int, unique key t1$a (a));
lock table t1 read;
connection: update
set low_priority_updates=1;
show variables like 'low_priority_updates';
Variable_name Value
low_priority_updates ON
insert into t1 values (1, 2) ON DUPLICATE KEY UPDATE b = 2;;
connection: select
select * from t1;
a b
connection: default
select * from t1;
a b
drop table t1;
set low_priority_updates=default;
mysql-test/r/insert_update.result
View file @
0187e78f
...
...
@@ -407,22 +407,3 @@ select if( @stamp1 = @stamp2, "correct", "wrong");
if( @stamp1 = @stamp2, "correct", "wrong")
correct
drop table t1;
connection: default
set low_priority_updates=1;
drop table if exists t1;
create table t1 (a int, b int, unique key t1$a (a));
lock table t1 read;
connection: update
set low_priority_updates=1;
show variables like 'low_priority_updates';
Variable_name Value
low_priority_updates ON
insert into t1 values (1, 2) ON DUPLICATE KEY UPDATE b = 2;;
connection: select
select * from t1;
a b
connection: default
select * from t1;
a b
drop table t1;
set low_priority_updates=default;
mysql-test/t/insert_notembedded.test
View file @
0187e78f
...
...
@@ -152,3 +152,38 @@ disconnect root;
connection
default
;
DROP
DATABASE
meow
;
#
# Bug#28587 SELECT is blocked by INSERT waiting on read lock, even with low_priority_updates
#
--
echo
connection
:
default
set
low_priority_updates
=
1
;
--
disable_warnings
drop
table
if
exists
t1
;
--
enable_warnings
create
table
t1
(
a
int
,
b
int
,
unique
key
t1
$a
(
a
));
lock
table
t1
read
;
connect
(
update
,
localhost
,
root
,,);
connection
update
;
--
echo
connection
:
update
set
low_priority_updates
=
1
;
show
variables
like
'low_priority_updates'
;
let
$ID
=
`select connection_id()`
;
--
send
insert
into
t1
values
(
1
,
2
)
ON
DUPLICATE
KEY
UPDATE
b
=
2
;
connection
default
;
# we must wait till the insert opens and locks the table
let
$wait_condition
=
select
count
(
*
)
=
1
from
information_schema
.
processlist
where
state
=
"Locked"
and
id
=
$ID
;
--
source
include
/
wait_condition
.
inc
connect
(
select
,
localhost
,
root
,,);
--
echo
connection
:
select
select
*
from
t1
;
connection
default
;
--
echo
connection
:
default
select
*
from
t1
;
connection
default
;
disconnect
update
;
disconnect
select
;
drop
table
t1
;
set
low_priority_updates
=
default
;
mysql-test/t/insert_update.test
View file @
0187e78f
...
...
@@ -306,38 +306,3 @@ insert into t1(f1) values(1) on duplicate key update f1=1;
select
@
stamp2
:=
f2
from
t1
;
select
if
(
@
stamp1
=
@
stamp2
,
"correct"
,
"wrong"
);
drop
table
t1
;
#
# Bug#28587 SELECT is blocked by INSERT waiting on read lock, even with low_priority_updates
#
--
echo
connection
:
default
set
low_priority_updates
=
1
;
--
disable_warnings
drop
table
if
exists
t1
;
--
enable_warnings
create
table
t1
(
a
int
,
b
int
,
unique
key
t1
$a
(
a
));
lock
table
t1
read
;
connect
(
update
,
localhost
,
root
,,);
connection
update
;
--
echo
connection
:
update
set
low_priority_updates
=
1
;
show
variables
like
'low_priority_updates'
;
let
$ID
=
`select connection_id()`
;
--
send
insert
into
t1
values
(
1
,
2
)
ON
DUPLICATE
KEY
UPDATE
b
=
2
;
connection
default
;
# we must wait till the insert opens and locks the table
let
$wait_condition
=
select
count
(
*
)
=
1
from
information_schema
.
processlist
where
state
=
"Locked"
and
id
=
$ID
;
--
source
include
/
wait_condition
.
inc
connect
(
select
,
localhost
,
root
,,);
--
echo
connection
:
select
select
*
from
t1
;
connection
default
;
--
echo
connection
:
default
select
*
from
t1
;
connection
default
;
disconnect
update
;
disconnect
select
;
drop
table
t1
;
set
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