Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
54 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
connect con1, localhost, root,,; | ||
connection default; | ||
CREATE TABLE t1 ENGINE=InnoDB SELECT * FROM seq_1_to_100000000; | ||
connection con1; | ||
KILL QUERY @id; | ||
disconnect con1; | ||
connection default; | ||
ERROR 70100: Query execution was interrupted | ||
CREATE TABLE t1 (a SERIAL) ENGINE=InnoDB; | ||
DROP TABLE t1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--source include/have_innodb.inc | ||
--source include/have_sequence.inc | ||
--source include/count_sessions.inc | ||
|
||
let $ID= `SELECT @id := CONNECTION_ID()`; | ||
|
||
connect (con1, localhost, root,,); | ||
let $ignore= `SELECT @id := $ID`; | ||
|
||
connection default; | ||
send CREATE TABLE t1 ENGINE=InnoDB SELECT * FROM seq_1_to_100000000; | ||
|
||
connection con1; | ||
let $wait_condition= | ||
select count(*) = 1 from information_schema.processlist | ||
where state = 'Sending data' | ||
and info = 'CREATE TABLE t1 ENGINE=InnoDB SELECT * FROM seq_1_to_100000000'; | ||
--source include/wait_condition.inc | ||
KILL QUERY @id; | ||
disconnect con1; | ||
|
||
connection default; | ||
--error ER_QUERY_INTERRUPTED | ||
reap; | ||
|
||
CREATE TABLE t1 (a SERIAL) ENGINE=InnoDB; | ||
DROP TABLE t1; | ||
--source include/wait_until_count_sessions.inc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters