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
ba506ca6
Commit
ba506ca6
authored
Jan 12, 2009
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Plain Diff
merged 41453 to 5.1-bugteam
parents
a13eda38
53ba196e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
3 deletions
+57
-3
mysql-test/r/innodb_mysql_rbk.result
mysql-test/r/innodb_mysql_rbk.result
+21
-0
mysql-test/t/innodb_mysql_rbk-master.opt
mysql-test/t/innodb_mysql_rbk-master.opt
+1
-0
mysql-test/t/innodb_mysql_rbk.test
mysql-test/t/innodb_mysql_rbk.test
+35
-0
sql/filesort.cc
sql/filesort.cc
+0
-3
No files found.
mysql-test/r/innodb_mysql_rbk.result
0 → 100644
View file @
ba506ca6
CREATE TABLE t1(a INT, b INT NOT NULL, PRIMARY KEY (a)) ENGINE=innodb
DEFAULT CHARSET=latin1;
INSERT INTO t1 VALUES (1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7);
START TRANSACTION;
SELECT * FROM t1 WHERE b=3 LIMIT 1 FOR UPDATE;
a b
3 3
START TRANSACTION;
UPDATE t1 SET b=b+12 WHERE a > 2 ORDER BY a;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
ROLLBACK;
START TRANSACTION;
SELECT * FROM t1 WHERE b=3 LIMIT 1 FOR UPDATE;
a b
3 3
START TRANSACTION;
UPDATE t1 SET b=10 WHERE a > 1 ORDER BY a;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
SELECT * FROM t1 WHERE b = 10;
a b
DROP TABLE t1;
mysql-test/t/innodb_mysql_rbk-master.opt
0 → 100644
View file @
ba506ca6
--innodb_lock_wait_timeout=1 --innodb_rollback_on_timeout=1
mysql-test/t/innodb_mysql_rbk.test
0 → 100644
View file @
ba506ca6
--
source
include
/
have_innodb
.
inc
#
# Bug #41453: Assertion `m_status == DA_ERROR' failed in
# Diagnostics_area::sql_errno
#
CREATE
TABLE
t1
(
a
INT
,
b
INT
NOT
NULL
,
PRIMARY
KEY
(
a
))
ENGINE
=
innodb
DEFAULT
CHARSET
=
latin1
;
INSERT
INTO
t1
VALUES
(
1
,
1
),(
2
,
2
),(
3
,
3
),(
4
,
4
),(
5
,
5
),(
6
,
6
),(
7
,
7
);
CONNECT
(
con1
,
localhost
,
root
,,);
CONNECT
(
con2
,
localhost
,
root
,,);
CONNECTION
con1
;
START
TRANSACTION
;
SELECT
*
FROM
t1
WHERE
b
=
3
LIMIT
1
FOR
UPDATE
;
CONNECTION
con2
;
START
TRANSACTION
;
--
error
ER_LOCK_WAIT_TIMEOUT
UPDATE
t1
SET
b
=
b
+
12
WHERE
a
>
2
ORDER
BY
a
;
ROLLBACK
;
CONNECTION
con1
;
START
TRANSACTION
;
SELECT
*
FROM
t1
WHERE
b
=
3
LIMIT
1
FOR
UPDATE
;
CONNECTION
con2
;
START
TRANSACTION
;
--
error
ER_LOCK_WAIT_TIMEOUT
UPDATE
t1
SET
b
=
10
WHERE
a
>
1
ORDER
BY
a
;
SELECT
*
FROM
t1
WHERE
b
=
10
;
CONNECTION
default
;
DISCONNECT
con1
;
DISCONNECT
con2
;
DROP
TABLE
t1
;
sql/filesort.cc
View file @
ba506ca6
...
...
@@ -562,10 +562,7 @@ static ha_rows find_all_keys(SORTPARAM *param, SQL_SELECT *select,
if
(
quick_select
)
{
if
((
error
=
select
->
quick
->
get_next
()))
{
error
=
HA_ERR_END_OF_FILE
;
break
;
}
file
->
position
(
sort_form
->
record
[
0
]);
DBUG_EXECUTE_IF
(
"debug_filesort"
,
dbug_print_record
(
sort_form
,
TRUE
););
}
...
...
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