Commit 4b57720c authored by Sergei Golubchik's avatar Sergei Golubchik

use a different error for MySQL bug#11747970 - kill the query,

as it was supposed to be in bug#11747970, don't fake an error.
(this kill can be useful for other bugs too)
parent 64249534
...@@ -94,7 +94,7 @@ INSERT INTO t1 VALUES (1),(2); ...@@ -94,7 +94,7 @@ INSERT INTO t1 VALUES (1),(2);
INSERT INTO t2 VALUES (1),(2); INSERT INTO t2 VALUES (1),(2);
SET SESSION debug="+d,bug11747970_raise_error"; SET SESSION debug="+d,bug11747970_raise_error";
INSERT IGNORE INTO t2 SELECT f1 FROM t1 a WHERE NOT EXISTS (SELECT 1 FROM t2 b WHERE a.f1 = b.f1); INSERT IGNORE INTO t2 SELECT f1 FROM t1 a WHERE NOT EXISTS (SELECT 1 FROM t2 b WHERE a.f1 = b.f1);
ERROR HY000: Unknown error ERROR 70100: Query execution was interrupted
SET SESSION debug = DEFAULT; SET SESSION debug = DEFAULT;
DROP TABLE t1,t2; DROP TABLE t1,t2;
# #
......
...@@ -103,7 +103,7 @@ CREATE TABLE t2(f1 INT); ...@@ -103,7 +103,7 @@ CREATE TABLE t2(f1 INT);
INSERT INTO t1 VALUES (1),(2); INSERT INTO t1 VALUES (1),(2);
INSERT INTO t2 VALUES (1),(2); INSERT INTO t2 VALUES (1),(2);
SET SESSION debug="+d,bug11747970_raise_error"; SET SESSION debug="+d,bug11747970_raise_error";
--error 1105 --error ER_QUERY_INTERRUPTED
INSERT IGNORE INTO t2 SELECT f1 FROM t1 a WHERE NOT EXISTS (SELECT 1 FROM t2 b WHERE a.f1 = b.f1); INSERT IGNORE INTO t2 SELECT f1 FROM t1 a WHERE NOT EXISTS (SELECT 1 FROM t2 b WHERE a.f1 = b.f1);
SET SESSION debug = DEFAULT; SET SESSION debug = DEFAULT;
DROP TABLE t1,t2; DROP TABLE t1,t2;
......
...@@ -3154,13 +3154,7 @@ make_join_statistics(JOIN *join, List<TABLE_LIST> &tables_list, ...@@ -3154,13 +3154,7 @@ make_join_statistics(JOIN *join, List<TABLE_LIST> &tables_list,
#endif #endif
DBUG_EXECUTE_IF("bug11747970_raise_error", DBUG_EXECUTE_IF("bug11747970_raise_error",
{ { join->thd->killed= KILL_QUERY_HARD; });
if (!error)
{
my_error(ER_UNKNOWN_ERROR, MYF(0));
goto error;
}
});
if (error) if (error)
{ {
table->file->print_error(error, MYF(0)); table->file->print_error(error, MYF(0));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment