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
c2352c45
Commit
c2352c45
authored
May 16, 2018
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-14669 Assertion `file->trn == trn' failed in ha_maria::start_stmt
Can't repeat issue so I just added the test case
parent
48d70388
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
+44
-0
mysql-test/suite/maria/lock.result
mysql-test/suite/maria/lock.result
+24
-0
mysql-test/suite/maria/lock.test
mysql-test/suite/maria/lock.test
+20
-0
No files found.
mysql-test/suite/maria/lock.result
View file @
c2352c45
...
...
@@ -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;
mysql-test/suite/maria/lock.test
View file @
c2352c45
...
...
@@ -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
;
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