summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/sql_sequence/kill.test
blob: 9caebc57f12319cd7ba47a3492576f21c91c2468 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--source include/have_innodb.inc

--echo #
--echo # MDEV-16929 Assertion ... in close_thread_tables upon killing connection
--echo # running SHOW on sequence
--echo #

CREATE SEQUENCE s ENGINE=InnoDB;
RENAME TABLE s TO s1;
--connect (con1,localhost,root,,test)
--let $conid= `SELECT CONNECTION_ID()`
--send
  SHOW CREATE SEQUENCE s1;
--connection default
--replace_result $conid thread_id
--eval KILL $conid

# Cleanup
--connection default
drop sequence s1;