diff options
author | Monty <monty@mariadb.org> | 2015-10-23 18:49:02 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2015-10-23 18:49:02 +0300 |
commit | d546d1cc138cc0e6c7d69a55bfee2bebfa4d4c0e (patch) | |
tree | 0d7eeebae93c93dc943588ae82381893939d21f6 /mysql-test/suite | |
parent | df8832caae60de4f7b9ceca808a3f97b92bc22fb (diff) | |
download | mariadb-git-d546d1cc138cc0e6c7d69a55bfee2bebfa4d4c0e.tar.gz |
Fixed MDEV-8408
Assertion `inited==INDEX' failed in int handler::ha_index_first(uchar*)
The crash was because errors from init_read_record_idx() was not taken care of.
Diffstat (limited to 'mysql-test/suite')
-rw-r--r-- | mysql-test/suite/innodb/r/snapshot.result | 8 | ||||
-rw-r--r-- | mysql-test/suite/innodb/t/snapshot.test | 18 |
2 files changed, 26 insertions, 0 deletions
diff --git a/mysql-test/suite/innodb/r/snapshot.result b/mysql-test/suite/innodb/r/snapshot.result new file mode 100644 index 00000000000..dcb3d242fc2 --- /dev/null +++ b/mysql-test/suite/innodb/r/snapshot.result @@ -0,0 +1,8 @@ +START TRANSACTION WITH CONSISTENT SNAPSHOT; +CREATE TABLE IF NOT EXISTS t1 (pk INT PRIMARY KEY, i INT, KEY(i)) ENGINE=InnoDB; +UPDATE t1 SET i = 0; +ERROR HY000: Table definition has changed, please retry transaction +UPDATE t1 SET pk = 0; +ERROR HY000: Table definition has changed, please retry transaction +commit; +drop table t1; diff --git a/mysql-test/suite/innodb/t/snapshot.test b/mysql-test/suite/innodb/t/snapshot.test new file mode 100644 index 00000000000..8e3dc76fe54 --- /dev/null +++ b/mysql-test/suite/innodb/t/snapshot.test @@ -0,0 +1,18 @@ + +--source include/have_log_bin.inc +--source include/have_binlog_format_row.inc +--source include/have_innodb.inc + +START TRANSACTION WITH CONSISTENT SNAPSHOT; + +--connect (con1,localhost,root,,test) +CREATE TABLE IF NOT EXISTS t1 (pk INT PRIMARY KEY, i INT, KEY(i)) ENGINE=InnoDB; + +--connection default +--error 1412 +UPDATE t1 SET i = 0; +--error 1412 +UPDATE t1 SET pk = 0; +commit; + +drop table t1; |