Skip to content

Commit

Permalink
MDEV-14669 Assertion `file->trn == trn' failed in ha_maria::start_stmt
Browse files Browse the repository at this point in the history
Can't repeat issue so I just added the test case
  • Loading branch information
montywi committed May 16, 2018
1 parent 48d7038 commit c2352c4
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
24 changes: 24 additions & 0 deletions mysql-test/suite/maria/lock.result
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,27 @@ f2
3
unlock tables;
DROP TABLE t1,t2,tmp;
#
# MDEV-14669 Assertion `file->trn == trn' failed in ha_maria::start_stmt
#
CREATE TABLE t1 (i INT) ENGINE=Aria;
INSERT INTO t1 VALUES (1),(2);
CREATE TABLE t2 (c CHAR(1)) ENGINE=Aria;
INSERT INTO t2 VALUES ('a'),('b');
connect con1,localhost,root,,test;
LOCK TABLE t1 WRITE;
OPTIMIZE TABLE t1;
Table Op Msg_type Msg_text
test.t1 optimize status OK
connection default;
DELETE FROM t2 WHERE c < 1;
Warnings:
Warning 1292 Truncated incorrect DOUBLE value: 'a'
Warning 1292 Truncated incorrect DOUBLE value: 'b'
connection con1;
OPTIMIZE TABLE t1;
Table Op Msg_type Msg_text
test.t1 optimize status Table is already up to date
disconnect con1;
connection default;
DROP TABLE t1, t2;
20 changes: 20 additions & 0 deletions mysql-test/suite/maria/lock.test
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,23 @@ INSERT INTO t2 (f2) SELECT f3 FROM tmp AS tmp_alias;
select * from t2;
unlock tables;
DROP TABLE t1,t2,tmp;

--echo #
--echo # MDEV-14669 Assertion `file->trn == trn' failed in ha_maria::start_stmt
--echo #

CREATE TABLE t1 (i INT) ENGINE=Aria;
INSERT INTO t1 VALUES (1),(2);
CREATE TABLE t2 (c CHAR(1)) ENGINE=Aria;
INSERT INTO t2 VALUES ('a'),('b');
--connect (con1,localhost,root,,test)
LOCK TABLE t1 WRITE;
OPTIMIZE TABLE t1;
--connection default
DELETE FROM t2 WHERE c < 1;
--connection con1
OPTIMIZE TABLE t1;
# Cleanup
--disconnect con1
--connection default
DROP TABLE t1, t2;

0 comments on commit c2352c4

Please sign in to comment.