diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2019-08-13 19:28:51 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-08-13 19:28:51 +0300 |
commit | 65d48b4a7bd7a57a27f2e9ca54473e1ae86223b5 (patch) | |
tree | f145a7a095011fbc4e6661e1675f72f6cdca38b6 /mysql-test/main/kill.test | |
parent | eedd6179c1e5e8651270b353a693887179ad7bf3 (diff) | |
parent | ed4ccf34a6603bd2374a721a7e1ad88472f335fc (diff) | |
download | mariadb-git-65d48b4a7bd7a57a27f2e9ca54473e1ae86223b5.tar.gz |
Merge 10.2 to 10.3
Diffstat (limited to 'mysql-test/main/kill.test')
-rw-r--r-- | mysql-test/main/kill.test | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mysql-test/main/kill.test b/mysql-test/main/kill.test index b6000ffced1..e5ebdadd8a8 100644 --- a/mysql-test/main/kill.test +++ b/mysql-test/main/kill.test @@ -642,3 +642,23 @@ SET DEBUG_SYNC = 'RESET'; DROP FUNCTION MY_KILL; set global sql_mode=default; + +--echo # +--echo # MDEV-17998 +--echo # Deadlock and eventual Assertion `!table->pos_in_locked_tables' failed +--echo # in tc_release_table on KILL_TIMEOUT +--echo # + +SET max_statement_time= 2; + +CREATE TABLE t1 (a INT); +CREATE VIEW v1 AS SELECT * FROM t1; +CREATE TABLE t2 (b INT, c INT); + +LOCK TABLES v1 READ, t2 WRITE, t1 WRITE; +--error ER_BAD_FIELD_ERROR,ER_STATEMENT_TIMEOUT +ALTER TABLE t1 CHANGE f1 f2 DOUBLE; +ALTER TABLE t2 DROP c; +UNLOCK TABLES; +DROP VIEW v1; +DROP TABLE t1, t2; |