mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
clarify the message when filesort is aborted by LIMIT ROWS EXAMINED
This commit is contained in:
parent
9508a44c37
commit
3bf8b60caf
3 changed files with 4 additions and 4 deletions
|
@ -2240,7 +2240,7 @@ drop database dummy;
|
||||||
USE test;
|
USE test;
|
||||||
CREATE VIEW v AS SELECT table_schema AS object_schema, table_name AS object_name, table_type AS object_type FROM information_schema.tables ORDER BY object_schema;
|
CREATE VIEW v AS SELECT table_schema AS object_schema, table_name AS object_name, table_type AS object_type FROM information_schema.tables ORDER BY object_schema;
|
||||||
SELECT * FROM v LIMIT ROWS EXAMINED 9;
|
SELECT * FROM v LIMIT ROWS EXAMINED 9;
|
||||||
ERROR HY000: Sort aborted:
|
ERROR HY000: Sort aborted: LIMIT ROWS EXAMINED
|
||||||
DROP VIEW v;
|
DROP VIEW v;
|
||||||
#
|
#
|
||||||
# MDEV-23408 Wrong result upon query from I_S and further Assertion `!alias_arg || strlen(alias_arg->str) == alias_arg->length' failed with certain connection charset
|
# MDEV-23408 Wrong result upon query from I_S and further Assertion `!alias_arg || strlen(alias_arg->str) == alias_arg->length' failed with certain connection charset
|
||||||
|
|
|
@ -608,7 +608,7 @@ select c1, c2 from t3 order by c2, c1 LIMIT ROWS EXAMINED 2;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t3 ALL NULL NULL NULL NULL 5 Using filesort
|
1 SIMPLE t3 ALL NULL NULL NULL NULL 5 Using filesort
|
||||||
select c1, c2 from t3 order by c2, c1 LIMIT ROWS EXAMINED 2;
|
select c1, c2 from t3 order by c2, c1 LIMIT ROWS EXAMINED 2;
|
||||||
ERROR HY000: Sort aborted:
|
ERROR HY000: Sort aborted: LIMIT ROWS EXAMINED
|
||||||
explain
|
explain
|
||||||
select c1, c2 from t3i order by c2, c1 LIMIT ROWS EXAMINED 2;
|
select c1, c2 from t3i order by c2, c1 LIMIT ROWS EXAMINED 2;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
|
@ -624,7 +624,7 @@ select c1, c2 from t3i order by c2, c1 desc LIMIT ROWS EXAMINED 2;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t3i index NULL it3j 8 NULL 5 Using index; Using filesort
|
1 SIMPLE t3i index NULL it3j 8 NULL 5 Using index; Using filesort
|
||||||
select c1, c2 from t3i order by c2, c1 desc LIMIT ROWS EXAMINED 2;
|
select c1, c2 from t3i order by c2, c1 desc LIMIT ROWS EXAMINED 2;
|
||||||
ERROR HY000: Sort aborted:
|
ERROR HY000: Sort aborted: LIMIT ROWS EXAMINED
|
||||||
drop table t3,t3i;
|
drop table t3,t3i;
|
||||||
=========================================================================
|
=========================================================================
|
||||||
INSERT/DELETE/UPDATE
|
INSERT/DELETE/UPDATE
|
||||||
|
|
|
@ -474,7 +474,7 @@ SORT_INFO *filesort(THD *thd, TABLE *table, Filesort *filesort,
|
||||||
MYF(0),
|
MYF(0),
|
||||||
ER_THD(thd, ER_FILSORT_ABORT),
|
ER_THD(thd, ER_FILSORT_ABORT),
|
||||||
kill_errno ? ER_THD(thd, kill_errno) :
|
kill_errno ? ER_THD(thd, kill_errno) :
|
||||||
thd->killed == ABORT_QUERY ? "" :
|
thd->killed == ABORT_QUERY ? "LIMIT ROWS EXAMINED" :
|
||||||
thd->get_stmt_da()->message());
|
thd->get_stmt_da()->message());
|
||||||
|
|
||||||
if (global_system_variables.log_warnings > 1)
|
if (global_system_variables.log_warnings > 1)
|
||||||
|
|
Loading…
Reference in a new issue