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
def8e0ce
Commit
def8e0ce
authored
Jun 12, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added order by
parent
334453f9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
mysql-test/r/ndb_lock.result
mysql-test/r/ndb_lock.result
+4
-4
mysql-test/t/ndb_lock.test
mysql-test/t/ndb_lock.test
+2
-2
No files found.
mysql-test/r/ndb_lock.result
View file @
def8e0ce
...
@@ -78,10 +78,10 @@ ERROR HY000: Lock wait timeout exceeded; try restarting transaction
...
@@ -78,10 +78,10 @@ ERROR HY000: Lock wait timeout exceeded; try restarting transaction
rollback;
rollback;
commit;
commit;
begin;
begin;
select * from t1 where y = 'one' or y = 'three' for update;
select * from t1 where y = 'one' or y = 'three'
order by x
for update;
x y z
x y z
3 three 3
1 one 1
1 one 1
3 three 3
begin;
begin;
select * from t1 where x = 1 for update;
select * from t1 where x = 1 for update;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
...
@@ -115,10 +115,10 @@ ERROR HY000: Lock wait timeout exceeded; try restarting transaction
...
@@ -115,10 +115,10 @@ ERROR HY000: Lock wait timeout exceeded; try restarting transaction
rollback;
rollback;
commit;
commit;
begin;
begin;
select * from t1 where y = 'one' or y = 'three' lock in share mode;
select * from t1 where y = 'one' or y = 'three'
order by x
lock in share mode;
x y z
x y z
3 three 3
1 one 1
1 one 1
3 three 3
begin;
begin;
select * from t1 where y = 'one' lock in share mode;
select * from t1 where y = 'one' lock in share mode;
x y z
x y z
...
...
mysql-test/t/ndb_lock.test
View file @
def8e0ce
...
@@ -93,7 +93,7 @@ commit;
...
@@ -93,7 +93,7 @@ commit;
# table scan
# table scan
connection
con1
;
connection
con1
;
begin
;
begin
;
select
*
from
t1
where
y
=
'one'
or
y
=
'three'
for
update
;
select
*
from
t1
where
y
=
'one'
or
y
=
'three'
order
by
x
for
update
;
connection
con2
;
connection
con2
;
begin
;
begin
;
...
@@ -146,7 +146,7 @@ commit;
...
@@ -146,7 +146,7 @@ commit;
# table scan
# table scan
connection
con1
;
connection
con1
;
begin
;
begin
;
select
*
from
t1
where
y
=
'one'
or
y
=
'three'
lock
in
share
mode
;
select
*
from
t1
where
y
=
'one'
or
y
=
'three'
order
by
x
lock
in
share
mode
;
connection
con2
;
connection
con2
;
begin
;
begin
;
...
...
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