1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-11071: Assertion `thd->transaction.stmt.is_empty()' failed in Locked_tables_list::unlock_locked_table

fix_length_and_dec now return result (error/OK)
This commit is contained in:
Oleksandr Byelkin
2018-05-08 15:26:26 +02:00
parent c55de8d40b
commit 6b8802e8dd
26 changed files with 778 additions and 518 deletions

View File

@ -2369,5 +2369,16 @@ t1 CREATE TABLE `t1` (
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop table t1;
#
# MDEV-11071: Assertion `thd->transaction.stmt.is_empty()' failed
# in Locked_tables_list::unlock_locked_tables
#
CREATE TABLE t1 (d DATETIME DEFAULT CURRENT_TIMESTAMP, i INT) ENGINE=InnoDB;
INSERT INTO t1 (i) VALUES (1),(1);
LOCK TABLE t1 WRITE;
ALTER TABLE t1 ADD UNIQUE(i);
ERROR 23000: Duplicate entry '1' for key 'i'
UNLOCK TABLES;
DROP TABLE t1;
#
# End of 10.2 tests
#