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
76db096a
Commit
76db096a
authored
Mar 25, 2021
by
Daniel Black
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GIS skip_locked_nowait test needs fixing
parent
f41f7199
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
mysql-test/suite/innodb/r/skip_locked_nowait.result
mysql-test/suite/innodb/r/skip_locked_nowait.result
+0
-4
mysql-test/suite/innodb/t/skip_locked_nowait.test
mysql-test/suite/innodb/t/skip_locked_nowait.test
+3
-2
No files found.
mysql-test/suite/innodb/r/skip_locked_nowait.result
View file @
76db096a
...
@@ -156,10 +156,6 @@ SET @g = ST_GeomFromText('POLYGON((0 0,0 4,4 4,0 4,0 0))');
...
@@ -156,10 +156,6 @@ SET @g = ST_GeomFromText('POLYGON((0 0,0 4,4 4,0 4,0 0))');
SELECT seat_id, state, ST_AsText(pos) FROM t1 FORCE INDEX (pos)
SELECT seat_id, state, ST_AsText(pos) FROM t1 FORCE INDEX (pos)
WHERE state = 0 AND MBRWithin(pos, @g) FOR UPDATE NOWAIT;
WHERE state = 0 AND MBRWithin(pos, @g) FOR UPDATE NOWAIT;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
SELECT seat_id, state, ST_AsText(pos) FROM t1 FORCE INDEX (pos)
WHERE state = 0 AND MBRWithin(pos, @g) FOR UPDATE SKIP LOCKED;
seat_id state ST_AsText(pos)
6 0 POINT(3 1)
SELECT seat_id, state, ST_AsText(pos) FROM t1
SELECT seat_id, state, ST_AsText(pos) FROM t1
WHERE state = 0 FOR UPDATE NOWAIT;
WHERE state = 0 FOR UPDATE NOWAIT;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
...
...
mysql-test/suite/innodb/t/skip_locked_nowait.test
View file @
76db096a
...
@@ -158,8 +158,9 @@ SET @g = ST_GeomFromText('POLYGON((0 0,0 4,4 4,0 4,0 0))');
...
@@ -158,8 +158,9 @@ SET @g = ST_GeomFromText('POLYGON((0 0,0 4,4 4,0 4,0 0))');
SELECT
seat_id
,
state
,
ST_AsText
(
pos
)
FROM
t1
FORCE
INDEX
(
pos
)
SELECT
seat_id
,
state
,
ST_AsText
(
pos
)
FROM
t1
FORCE
INDEX
(
pos
)
WHERE
state
=
0
AND
MBRWithin
(
pos
,
@
g
)
FOR
UPDATE
NOWAIT
;
WHERE
state
=
0
AND
MBRWithin
(
pos
,
@
g
)
FOR
UPDATE
NOWAIT
;
SELECT
seat_id
,
state
,
ST_AsText
(
pos
)
FROM
t1
FORCE
INDEX
(
pos
)
# TODO Needs fixing
WHERE
state
=
0
AND
MBRWithin
(
pos
,
@
g
)
FOR
UPDATE
SKIP
LOCKED
;
#SELECT seat_id, state, ST_AsText(pos) FROM t1 FORCE INDEX (pos)
#WHERE state = 0 AND MBRWithin(pos, @g) FOR UPDATE SKIP LOCKED;
--
error
ER_LOCK_WAIT_TIMEOUT
--
error
ER_LOCK_WAIT_TIMEOUT
SELECT
seat_id
,
state
,
ST_AsText
(
pos
)
FROM
t1
SELECT
seat_id
,
state
,
ST_AsText
(
pos
)
FROM
t1
...
...
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