Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
12 changed files
with
124 additions
and
40 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,6 @@ | ||
| CREATE TABLE t1 (a VARCHAR(7), b text, FULLTEXT KEY idx (a,b)) ENGINE=InnoDB; | ||
| COMMIT; | ||
| SELECT COUNT(*) FROM t1 | ||
| WHERE MATCH (a,b) AGAINST ('foo bar' IN BOOLEAN MODE); | ||
| KILL QUERY @id; | ||
| 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,30 @@ | ||
| --source include/have_innodb.inc | ||
|
|
||
| CREATE TABLE t1 (a VARCHAR(7), b text, FULLTEXT KEY idx (a,b)) ENGINE=InnoDB; | ||
|
|
||
| --disable_query_log | ||
| BEGIN; | ||
| let $n=1000; | ||
| while ($n) { | ||
| INSERT INTO t1 VALUES('foo bar','boo far'); | ||
| dec $n; | ||
| } | ||
| --enable_query_log | ||
| COMMIT; | ||
|
|
||
| let $id = `SELECT CONNECTION_ID()`; | ||
| send SELECT COUNT(*) FROM t1 | ||
| WHERE MATCH (a,b) AGAINST ('foo bar' IN BOOLEAN MODE); | ||
|
|
||
| connect (con1,localhost,root,,); | ||
| let $ignore= `SELECT @id := $ID`; | ||
| KILL QUERY @id; | ||
| disconnect con1; | ||
|
|
||
| connection default; | ||
| # The following would return a result set if the KILL was not fast enough. | ||
| --disable_result_log | ||
| --error 0,ER_QUERY_INTERRUPTED,HA_ERR_ABORTED_BY_USER | ||
| reap; | ||
| --enable_result_log | ||
| 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
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
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
Oops, something went wrong.