Commit 22e5a5ff authored by Sergei Golubchik's avatar Sergei Golubchik

generalize ER_QUERY_EXCEEDED_ROWS_EXAMINED_LIMIT

make it "query reached <some limit> result may be incomplete"
parent d458136e
...@@ -148,6 +148,7 @@ typedef unsigned long long my_ulonglong; ...@@ -148,6 +148,7 @@ typedef unsigned long long my_ulonglong;
#define ER_WRONG_FK_OPTION_FOR_VIRTUAL_COLUMN ER_WRONG_FK_OPTION_FOR_GENERATED_COLUMN #define ER_WRONG_FK_OPTION_FOR_VIRTUAL_COLUMN ER_WRONG_FK_OPTION_FOR_GENERATED_COLUMN
#define ER_UNSUPPORTED_ACTION_ON_VIRTUAL_COLUMN ER_UNSUPPORTED_ACTION_ON_GENERATED_COLUMN #define ER_UNSUPPORTED_ACTION_ON_VIRTUAL_COLUMN ER_UNSUPPORTED_ACTION_ON_GENERATED_COLUMN
#define ER_UNSUPPORTED_ENGINE_FOR_VIRTUAL_COLUMNS ER_UNSUPPORTED_ENGINE_FOR_GENERATED_COLUMNS #define ER_UNSUPPORTED_ENGINE_FOR_VIRTUAL_COLUMNS ER_UNSUPPORTED_ENGINE_FOR_GENERATED_COLUMNS
#define ER_QUERY_EXCEEDED_ROWS_EXAMINED_LIMIT ER_QUERY_RESULT_INCOMPLETE
typedef struct st_mysql_rows { typedef struct st_mysql_rows {
struct st_mysql_rows *next; /* list of rows */ struct st_mysql_rows *next; /* list of rows */
......
...@@ -2228,7 +2228,7 @@ SCHEMA_NAME ...@@ -2228,7 +2228,7 @@ SCHEMA_NAME
SELECT * FROM INFORMATION_SCHEMA.`COLUMNS` LIMIT ROWS EXAMINED 10; SELECT * FROM INFORMATION_SCHEMA.`COLUMNS` LIMIT ROWS EXAMINED 10;
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT IS_GENERATED GENERATION_EXPRESSION TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT IS_GENERATED GENERATION_EXPRESSION
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least ### rows, which exceeds LIMIT ROWS EXAMINED (10). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 10. The query result may be incomplete
# #
# MDEV-24179: AAssertion `m_status == DA_ERROR || m_status == DA_OK || # MDEV-24179: AAssertion `m_status == DA_ERROR || m_status == DA_OK ||
# m_status == DA_OK_BULK' failed in Diagnostics_area::message() # m_status == DA_OK_BULK' failed in Diagnostics_area::message()
......
...@@ -22,7 +22,7 @@ select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 2; ...@@ -22,7 +22,7 @@ select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 2;
c1 c2 c1 c2
bb bb bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 3 rows, which exceeds LIMIT ROWS EXAMINED (2). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 2. The query result may be incomplete
explain explain
select * from t1i, t2i where c1 = c2 LIMIT ROWS EXAMINED 4; select * from t1i, t2i where c1 = c2 LIMIT ROWS EXAMINED 4;
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
...@@ -32,7 +32,7 @@ select * from t1i, t2i where c1 = c2 LIMIT ROWS EXAMINED 4; ...@@ -32,7 +32,7 @@ select * from t1i, t2i where c1 = c2 LIMIT ROWS EXAMINED 4;
c1 c2 c1 c2
bb bb bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 5 rows, which exceeds LIMIT ROWS EXAMINED (4). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 4. The query result may be incomplete
Blocked nested loops join, empty result set because of blocking Blocked nested loops join, empty result set because of blocking
set @@join_cache_level=1; set @@join_cache_level=1;
explain explain
...@@ -44,7 +44,7 @@ select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 6; ...@@ -44,7 +44,7 @@ select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 6;
c1 c2 c1 c2
bb bb bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 7 rows, which exceeds LIMIT ROWS EXAMINED (6). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 6. The query result may be incomplete
explain explain
select * from t1i, t2i where c1 = c2 LIMIT ROWS EXAMINED 6; select * from t1i, t2i where c1 = c2 LIMIT ROWS EXAMINED 6;
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
...@@ -55,7 +55,7 @@ c1 c2 ...@@ -55,7 +55,7 @@ c1 c2
bb bb bb bb
cc cc cc cc
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 7 rows, which exceeds LIMIT ROWS EXAMINED (6). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 6. The query result may be incomplete
set @@join_cache_level=6; set @@join_cache_level=6;
explain explain
select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 3; select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 3;
...@@ -65,7 +65,7 @@ id select_type table type possible_keys key key_len ref rows Extra ...@@ -65,7 +65,7 @@ id select_type table type possible_keys key key_len ref rows Extra
select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 3; select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 3;
c1 c2 c1 c2
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 4 rows, which exceeds LIMIT ROWS EXAMINED (3). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 3. The query result may be incomplete
explain explain
select * from t1i, t2i where c1 = c2 LIMIT ROWS EXAMINED 6; select * from t1i, t2i where c1 = c2 LIMIT ROWS EXAMINED 6;
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
...@@ -76,7 +76,7 @@ c1 c2 ...@@ -76,7 +76,7 @@ c1 c2
bb bb bb bb
cc cc cc cc
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 7 rows, which exceeds LIMIT ROWS EXAMINED (6). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 6. The query result may be incomplete
Mix LIMIT ROWS EXAMINED with LIMIT Mix LIMIT ROWS EXAMINED with LIMIT
set @@join_cache_level=0; set @@join_cache_level=0;
explain explain
...@@ -125,7 +125,7 @@ id select_type table type possible_keys key key_len ref rows Extra ...@@ -125,7 +125,7 @@ id select_type table type possible_keys key key_len ref rows Extra
select * from t0, t1 where c0 = 'bb' and c1 > c0 LIMIT ROWS EXAMINED 0; select * from t0, t1 where c0 = 'bb' and c1 > c0 LIMIT ROWS EXAMINED 0;
c0 c1 c0 c1
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 2 rows, which exceeds LIMIT ROWS EXAMINED (0). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 0. The query result may be incomplete
set @@join_cache_level = @save_join_cache_level; set @@join_cache_level = @save_join_cache_level;
drop table t0; drop table t0;
========================================================================= =========================================================================
...@@ -139,7 +139,7 @@ execute st1 using @l; ...@@ -139,7 +139,7 @@ execute st1 using @l;
c1 c2 c1 c2
bb bb bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 3 rows, which exceeds LIMIT ROWS EXAMINED (2). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 2. The query result may be incomplete
deallocate prepare st1; deallocate prepare st1;
User variable (not supported for LIMIT in MariaDB 5.3/MySQL 5.1) User variable (not supported for LIMIT in MariaDB 5.3/MySQL 5.1)
select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED @l; select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED @l;
...@@ -153,7 +153,7 @@ call test_limit_rows(3); ...@@ -153,7 +153,7 @@ call test_limit_rows(3);
c1 c2 c1 c2
bb bb bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 4 rows, which exceeds LIMIT ROWS EXAMINED (3). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 3. The query result may be incomplete
drop procedure test_limit_rows; drop procedure test_limit_rows;
set @@join_cache_level = @save_join_cache_level; set @@join_cache_level = @save_join_cache_level;
========================================================================= =========================================================================
...@@ -165,14 +165,14 @@ UNION ...@@ -165,14 +165,14 @@ UNION
c1 c2 c1 c2
bb bb bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 8 rows, which exceeds LIMIT ROWS EXAMINED (6). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 6. The query result may be incomplete
(select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 0) (select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 0)
UNION UNION
(select * from t1, t2 where c1 < c2 LIMIT ROWS EXAMINED 6); (select * from t1, t2 where c1 < c2 LIMIT ROWS EXAMINED 6);
c1 c2 c1 c2
bb bb bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 8 rows, which exceeds LIMIT ROWS EXAMINED (6). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 6. The query result may be incomplete
select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 0 select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 0
UNION UNION
select * from t1, t2 where c1 < c2 LIMIT ROWS EXAMINED 6; select * from t1, t2 where c1 < c2 LIMIT ROWS EXAMINED 6;
...@@ -185,7 +185,7 @@ LIMIT ROWS EXAMINED 6; ...@@ -185,7 +185,7 @@ LIMIT ROWS EXAMINED 6;
c1 c2 c1 c2
bb bb bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 8 rows, which exceeds LIMIT ROWS EXAMINED (6). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 6. The query result may be incomplete
(select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 0) (select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 0)
UNION UNION
(select * from t1, t2 where c1 < c2 LIMIT ROWS EXAMINED 0) (select * from t1, t2 where c1 < c2 LIMIT ROWS EXAMINED 0)
...@@ -193,7 +193,7 @@ LIMIT 1 ROWS EXAMINED 6; ...@@ -193,7 +193,7 @@ LIMIT 1 ROWS EXAMINED 6;
c1 c2 c1 c2
bb bb bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 8 rows, which exceeds LIMIT ROWS EXAMINED (6). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 6. The query result may be incomplete
(select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 0) (select * from t1, t2 where c1 = c2 LIMIT ROWS EXAMINED 0)
UNION UNION
(select * from t1, t2 where c1 < c2 LIMIT ROWS EXAMINED 0) (select * from t1, t2 where c1 < c2 LIMIT ROWS EXAMINED 0)
...@@ -202,7 +202,7 @@ c1 c2 ...@@ -202,7 +202,7 @@ c1 c2
bb bb bb bb
cc cc cc cc
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 12 rows, which exceeds LIMIT ROWS EXAMINED (10). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 10. The query result may be incomplete
========================================================================= =========================================================================
Subqueries (with several LIMIT ROWS EXAMINED clauses) Subqueries (with several LIMIT ROWS EXAMINED clauses)
========================================================================= =========================================================================
...@@ -219,7 +219,7 @@ where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 11); ...@@ -219,7 +219,7 @@ where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 11);
c1 c1
bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 12 rows, which exceeds LIMIT ROWS EXAMINED (11). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 11. The query result may be incomplete
explain explain
select * from t1 select * from t1
where c1 IN (select * from t2 where c2 > ' ') where c1 IN (select * from t2 where c2 > ' ')
...@@ -234,7 +234,7 @@ LIMIT ROWS EXAMINED 11; ...@@ -234,7 +234,7 @@ LIMIT ROWS EXAMINED 11;
c1 c1
bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 12 rows, which exceeds LIMIT ROWS EXAMINED (11). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 11. The query result may be incomplete
explain explain
select * from t1 select * from t1
where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 0) where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 0)
...@@ -249,7 +249,7 @@ LIMIT ROWS EXAMINED 11; ...@@ -249,7 +249,7 @@ LIMIT ROWS EXAMINED 11;
c1 c1
bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 12 rows, which exceeds LIMIT ROWS EXAMINED (11). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 11. The query result may be incomplete
explain explain
select * from t1i select * from t1i
where c1 IN (select * from t2i where c2 > ' ') where c1 IN (select * from t2i where c2 > ' ')
...@@ -264,7 +264,7 @@ c1 ...@@ -264,7 +264,7 @@ c1
bb bb
cc cc
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 7 rows, which exceeds LIMIT ROWS EXAMINED (6). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 6. The query result may be incomplete
Subqueries with IN-TO-EXISTS Subqueries with IN-TO-EXISTS
set @@optimizer_switch='semijoin=off,in_to_exists=on,materialization=off'; set @@optimizer_switch='semijoin=off,in_to_exists=on,materialization=off';
explain explain
...@@ -278,7 +278,7 @@ where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 4); ...@@ -278,7 +278,7 @@ where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 4);
c1 c1
bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 5 rows, which exceeds LIMIT ROWS EXAMINED (4). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 4. The query result may be incomplete
explain explain
select * from t1 select * from t1
where c1 IN (select * from t2 where c2 > ' ') where c1 IN (select * from t2 where c2 > ' ')
...@@ -292,7 +292,7 @@ LIMIT ROWS EXAMINED 4; ...@@ -292,7 +292,7 @@ LIMIT ROWS EXAMINED 4;
c1 c1
bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 5 rows, which exceeds LIMIT ROWS EXAMINED (4). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 4. The query result may be incomplete
explain explain
select * from t1 select * from t1
where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 0) where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 0)
...@@ -306,7 +306,7 @@ LIMIT ROWS EXAMINED 4; ...@@ -306,7 +306,7 @@ LIMIT ROWS EXAMINED 4;
c1 c1
bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 5 rows, which exceeds LIMIT ROWS EXAMINED (4). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 4. The query result may be incomplete
explain explain
select * from t1i select * from t1i
where c1 IN (select * from t2i where c2 > ' ') where c1 IN (select * from t2i where c2 > ' ')
...@@ -320,7 +320,7 @@ LIMIT ROWS EXAMINED 9; ...@@ -320,7 +320,7 @@ LIMIT ROWS EXAMINED 9;
c1 c1
bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 12 rows, which exceeds LIMIT ROWS EXAMINED (9). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 9. The query result may be incomplete
Same as above, without subquery cache Same as above, without subquery cache
set @@optimizer_switch='subquery_cache=off'; set @@optimizer_switch='subquery_cache=off';
select * from t1 select * from t1
...@@ -328,28 +328,28 @@ where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 2); ...@@ -328,28 +328,28 @@ where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 2);
c1 c1
bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 3 rows, which exceeds LIMIT ROWS EXAMINED (2). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 2. The query result may be incomplete
select * from t1 select * from t1
where c1 IN (select * from t2 where c2 > ' ') where c1 IN (select * from t2 where c2 > ' ')
LIMIT ROWS EXAMINED 2; LIMIT ROWS EXAMINED 2;
c1 c1
bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 3 rows, which exceeds LIMIT ROWS EXAMINED (2). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 2. The query result may be incomplete
select * from t1 select * from t1
where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 0) where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 0)
LIMIT ROWS EXAMINED 2; LIMIT ROWS EXAMINED 2;
c1 c1
bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 3 rows, which exceeds LIMIT ROWS EXAMINED (2). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 2. The query result may be incomplete
select * from t1i select * from t1i
where c1 IN (select * from t2i where c2 > ' ') where c1 IN (select * from t2i where c2 > ' ')
LIMIT ROWS EXAMINED 5; LIMIT ROWS EXAMINED 5;
c1 c1
bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 7 rows, which exceeds LIMIT ROWS EXAMINED (5). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 5. The query result may be incomplete
Subqueries with materialization Subqueries with materialization
set @@optimizer_switch='semijoin=off,in_to_exists=off,materialization=on,subquery_cache=on'; set @@optimizer_switch='semijoin=off,in_to_exists=off,materialization=on,subquery_cache=on';
explain explain
...@@ -363,7 +363,7 @@ where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 13); ...@@ -363,7 +363,7 @@ where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 13);
c1 c1
bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 14 rows, which exceeds LIMIT ROWS EXAMINED (13). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 13. The query result may be incomplete
explain explain
select * from t1 select * from t1
where c1 IN (select * from t2 where c2 > ' ') LIMIT ROWS EXAMINED 13; where c1 IN (select * from t2 where c2 > ' ') LIMIT ROWS EXAMINED 13;
...@@ -375,7 +375,7 @@ where c1 IN (select * from t2 where c2 > ' ') LIMIT ROWS EXAMINED 13; ...@@ -375,7 +375,7 @@ where c1 IN (select * from t2 where c2 > ' ') LIMIT ROWS EXAMINED 13;
c1 c1
bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 14 rows, which exceeds LIMIT ROWS EXAMINED (13). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 13. The query result may be incomplete
explain explain
select * from t1 select * from t1
where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 0) where c1 IN (select * from t2 where c2 > ' ' LIMIT ROWS EXAMINED 0)
...@@ -389,7 +389,7 @@ LIMIT ROWS EXAMINED 13; ...@@ -389,7 +389,7 @@ LIMIT ROWS EXAMINED 13;
c1 c1
bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 14 rows, which exceeds LIMIT ROWS EXAMINED (13). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 13. The query result may be incomplete
explain explain
select * from t1i select * from t1i
where c1 IN (select * from t2i where c2 > ' ') LIMIT ROWS EXAMINED 17; where c1 IN (select * from t2i where c2 > ' ') LIMIT ROWS EXAMINED 17;
...@@ -401,7 +401,7 @@ where c1 IN (select * from t2i where c2 > ' ') LIMIT ROWS EXAMINED 17; ...@@ -401,7 +401,7 @@ where c1 IN (select * from t2i where c2 > ' ') LIMIT ROWS EXAMINED 17;
c1 c1
bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 18 rows, which exceeds LIMIT ROWS EXAMINED (17). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 17. The query result may be incomplete
set @@optimizer_switch='default'; set @@optimizer_switch='default';
========================================================================= =========================================================================
Views and derived tables Views and derived tables
...@@ -422,18 +422,18 @@ bb ...@@ -422,18 +422,18 @@ bb
cc cc
dd dd
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 18 rows, which exceeds LIMIT ROWS EXAMINED (17). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 17. The query result may be incomplete
select * from v1 LIMIT ROWS EXAMINED 16; select * from v1 LIMIT ROWS EXAMINED 16;
c1 c1
bb bb
cc cc
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 17 rows, which exceeds LIMIT ROWS EXAMINED (16). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 16. The query result may be incomplete
select * from v1 LIMIT ROWS EXAMINED 11; select * from v1 LIMIT ROWS EXAMINED 11;
c1 c1
bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 12 rows, which exceeds LIMIT ROWS EXAMINED (11). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 11. The query result may be incomplete
drop view v1; drop view v1;
explain explain
select * select *
...@@ -451,7 +451,7 @@ LIMIT ROWS EXAMINED 11; ...@@ -451,7 +451,7 @@ LIMIT ROWS EXAMINED 11;
c1 c1
bb bb
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 12 rows, which exceeds LIMIT ROWS EXAMINED (11). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 11. The query result may be incomplete
========================================================================= =========================================================================
Aggregation Aggregation
========================================================================= =========================================================================
...@@ -474,16 +474,16 @@ id select_type table type possible_keys key key_len ref rows Extra ...@@ -474,16 +474,16 @@ id select_type table type possible_keys key key_len ref rows Extra
select c1, sum(c2) from t3 group by c1 LIMIT ROWS EXAMINED 0; select c1, sum(c2) from t3 group by c1 LIMIT ROWS EXAMINED 0;
c1 sum(c2) c1 sum(c2)
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 1 rows, which exceeds LIMIT ROWS EXAMINED (0). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 0. The query result may be incomplete
select c1, sum(c2) from t3 group by c1 LIMIT ROWS EXAMINED 1; select c1, sum(c2) from t3 group by c1 LIMIT ROWS EXAMINED 1;
c1 sum(c2) c1 sum(c2)
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 3 rows, which exceeds LIMIT ROWS EXAMINED (1). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 1. The query result may be incomplete
select c1, sum(c2) from t3 group by c1 LIMIT ROWS EXAMINED 20; select c1, sum(c2) from t3 group by c1 LIMIT ROWS EXAMINED 20;
c1 sum(c2) c1 sum(c2)
aa 3 aa 3
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 21 rows, which exceeds LIMIT ROWS EXAMINED (20). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 20. The query result may be incomplete
select c1, sum(c2) from t3 group by c1 LIMIT ROWS EXAMINED 21; select c1, sum(c2) from t3 group by c1 LIMIT ROWS EXAMINED 21;
c1 sum(c2) c1 sum(c2)
aa 3 aa 3
...@@ -501,16 +501,16 @@ id select_type table type possible_keys key key_len ref rows Extra ...@@ -501,16 +501,16 @@ id select_type table type possible_keys key key_len ref rows Extra
select c1, sum(c2) from t3i group by c1 LIMIT ROWS EXAMINED 0; select c1, sum(c2) from t3i group by c1 LIMIT ROWS EXAMINED 0;
c1 sum(c2) c1 sum(c2)
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 1 rows, which exceeds LIMIT ROWS EXAMINED (0). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 0. The query result may be incomplete
select c1, sum(c2) from t3i group by c1 LIMIT ROWS EXAMINED 1; select c1, sum(c2) from t3i group by c1 LIMIT ROWS EXAMINED 1;
c1 sum(c2) c1 sum(c2)
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 3 rows, which exceeds LIMIT ROWS EXAMINED (1). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 1. The query result may be incomplete
select c1, sum(c2) from t3i group by c1 LIMIT ROWS EXAMINED 20; select c1, sum(c2) from t3i group by c1 LIMIT ROWS EXAMINED 20;
c1 sum(c2) c1 sum(c2)
aa 3 aa 3
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 21 rows, which exceeds LIMIT ROWS EXAMINED (20). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 20. The query result may be incomplete
select c1, sum(c2) from t3i group by c1 LIMIT ROWS EXAMINED 21; select c1, sum(c2) from t3i group by c1 LIMIT ROWS EXAMINED 21;
c1 sum(c2) c1 sum(c2)
aa 3 aa 3
...@@ -523,14 +523,14 @@ id select_type table type possible_keys key key_len ref rows Extra ...@@ -523,14 +523,14 @@ id select_type table type possible_keys key key_len ref rows Extra
select min(c2) from t3 LIMIT ROWS EXAMINED 5; select min(c2) from t3 LIMIT ROWS EXAMINED 5;
min(c2) min(c2)
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 6 rows, which exceeds LIMIT ROWS EXAMINED (5). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 5. The query result may be incomplete
select max(c2) from t3 LIMIT ROWS EXAMINED 6; select max(c2) from t3 LIMIT ROWS EXAMINED 6;
max(c2) max(c2)
5 5
select max(c2) from t3 LIMIT ROWS EXAMINED 0; select max(c2) from t3 LIMIT ROWS EXAMINED 0;
max(c2) max(c2)
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 1 rows, which exceeds LIMIT ROWS EXAMINED (0). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 0. The query result may be incomplete
explain explain
select max(c2) from t3 where c2 > 10 LIMIT ROWS EXAMINED 5; select max(c2) from t3 where c2 > 10 LIMIT ROWS EXAMINED 5;
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
...@@ -538,14 +538,14 @@ id select_type table type possible_keys key key_len ref rows Extra ...@@ -538,14 +538,14 @@ id select_type table type possible_keys key key_len ref rows Extra
select max(c2) from t3 where c2 > 10 LIMIT ROWS EXAMINED 5; select max(c2) from t3 where c2 > 10 LIMIT ROWS EXAMINED 5;
max(c2) max(c2)
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 6 rows, which exceeds LIMIT ROWS EXAMINED (5). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 5. The query result may be incomplete
select max(c2) from t3 where c2 > 10 LIMIT ROWS EXAMINED 6; select max(c2) from t3 where c2 > 10 LIMIT ROWS EXAMINED 6;
max(c2) max(c2)
NULL NULL
select max(c2) from t3 where c2 > 10 LIMIT ROWS EXAMINED 0; select max(c2) from t3 where c2 > 10 LIMIT ROWS EXAMINED 0;
max(c2) max(c2)
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 1 rows, which exceeds LIMIT ROWS EXAMINED (0). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 0. The query result may be incomplete
explain explain
select count(c2) from t3 LIMIT ROWS EXAMINED 5; select count(c2) from t3 LIMIT ROWS EXAMINED 5;
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
...@@ -553,14 +553,14 @@ id select_type table type possible_keys key key_len ref rows Extra ...@@ -553,14 +553,14 @@ id select_type table type possible_keys key key_len ref rows Extra
select count(c2) from t3 LIMIT ROWS EXAMINED 5; select count(c2) from t3 LIMIT ROWS EXAMINED 5;
count(c2) count(c2)
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 6 rows, which exceeds LIMIT ROWS EXAMINED (5). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 5. The query result may be incomplete
select count(c2) from t3 LIMIT ROWS EXAMINED 6; select count(c2) from t3 LIMIT ROWS EXAMINED 6;
count(c2) count(c2)
5 5
select count(c2) from t3 LIMIT ROWS EXAMINED 0; select count(c2) from t3 LIMIT ROWS EXAMINED 0;
count(c2) count(c2)
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 1 rows, which exceeds LIMIT ROWS EXAMINED (0). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 0. The query result may be incomplete
explain explain
select count(c2) from t3 where c2 > 10 LIMIT ROWS EXAMINED 5; select count(c2) from t3 where c2 > 10 LIMIT ROWS EXAMINED 5;
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
...@@ -568,7 +568,7 @@ id select_type table type possible_keys key key_len ref rows Extra ...@@ -568,7 +568,7 @@ id select_type table type possible_keys key key_len ref rows Extra
select count(c2) from t3 where c2 > 10 LIMIT ROWS EXAMINED 5; select count(c2) from t3 where c2 > 10 LIMIT ROWS EXAMINED 5;
count(c2) count(c2)
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 6 rows, which exceeds LIMIT ROWS EXAMINED (5). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 5. The query result may be incomplete
select count(c2) from t3 where c2 > 10 LIMIT ROWS EXAMINED 6; select count(c2) from t3 where c2 > 10 LIMIT ROWS EXAMINED 6;
count(c2) count(c2)
0 0
...@@ -579,7 +579,7 @@ id select_type table type possible_keys key key_len ref rows Extra ...@@ -579,7 +579,7 @@ id select_type table type possible_keys key key_len ref rows Extra
select sum(c2) from t3 LIMIT ROWS EXAMINED 5; select sum(c2) from t3 LIMIT ROWS EXAMINED 5;
sum(c2) sum(c2)
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 6 rows, which exceeds LIMIT ROWS EXAMINED (5). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 5. The query result may be incomplete
select sum(c2) from t3 LIMIT ROWS EXAMINED 6; select sum(c2) from t3 LIMIT ROWS EXAMINED 6;
sum(c2) sum(c2)
15 15
...@@ -618,7 +618,7 @@ c1 c2 ...@@ -618,7 +618,7 @@ c1 c2
aa 1 aa 1
aa 2 aa 2
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 3 rows, which exceeds LIMIT ROWS EXAMINED (2). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 2. The query result may be incomplete
explain explain
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;
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
...@@ -634,14 +634,14 @@ CREATE TABLE t4 (a int); ...@@ -634,14 +634,14 @@ CREATE TABLE t4 (a int);
INSERT INTO t4 values (1), (2); INSERT INTO t4 values (1), (2);
INSERT IGNORE INTO t4 SELECT a + 2 FROM t4 LIMIT ROWS EXAMINED 0; INSERT IGNORE INTO t4 SELECT a + 2 FROM t4 LIMIT ROWS EXAMINED 0;
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 1 rows, which exceeds LIMIT ROWS EXAMINED (0). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 0. The query result may be incomplete
select * from t4; select * from t4;
a a
1 1
2 2
INSERT INTO t4 SELECT a + 2 FROM t4 LIMIT ROWS EXAMINED 6; INSERT INTO t4 SELECT a + 2 FROM t4 LIMIT ROWS EXAMINED 6;
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 8 rows, which exceeds LIMIT ROWS EXAMINED (6). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 6. The query result may be incomplete
select * from t4; select * from t4;
a a
1 1
...@@ -692,7 +692,7 @@ WHERE EXISTS (SELECT c FROM t3 LEFT JOIN t2 ON b = d) ...@@ -692,7 +692,7 @@ WHERE EXISTS (SELECT c FROM t3 LEFT JOIN t2 ON b = d)
HAVING field1 > 'aaa' LIMIT ROWS EXAMINED 20; HAVING field1 > 'aaa' LIMIT ROWS EXAMINED 20;
field1 field1
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 21 rows, which exceeds LIMIT ROWS EXAMINED (20). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 20. The query result may be incomplete
EXPLAIN EXPLAIN
SELECT DISTINCT a FROM t1, t2 HAVING a > ' ' LIMIT ROWS EXAMINED 14; SELECT DISTINCT a FROM t1, t2 HAVING a > ' ' LIMIT ROWS EXAMINED 14;
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
...@@ -702,13 +702,13 @@ SELECT DISTINCT a FROM t1, t2 HAVING a > ' ' LIMIT ROWS EXAMINED 14; ...@@ -702,13 +702,13 @@ SELECT DISTINCT a FROM t1, t2 HAVING a > ' ' LIMIT ROWS EXAMINED 14;
a a
USA USA
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 15 rows, which exceeds LIMIT ROWS EXAMINED (14). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 14. The query result may be incomplete
SELECT DISTINCT a FROM t1, t2 HAVING a > ' ' LIMIT ROWS EXAMINED 15; SELECT DISTINCT a FROM t1, t2 HAVING a > ' ' LIMIT ROWS EXAMINED 15;
a a
USA USA
CAN CAN
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 16 rows, which exceeds LIMIT ROWS EXAMINED (15). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 15. The query result may be incomplete
SELECT DISTINCT a FROM t1, t2 HAVING a > ' ' LIMIT ROWS EXAMINED 16; SELECT DISTINCT a FROM t1, t2 HAVING a > ' ' LIMIT ROWS EXAMINED 16;
a a
USA USA
...@@ -753,7 +753,7 @@ GROUP BY field1, field2, field3, field4, field5 ...@@ -753,7 +753,7 @@ GROUP BY field1, field2, field3, field4, field5
LIMIT ROWS EXAMINED 120; LIMIT ROWS EXAMINED 120;
field1 field2 field3 field4 field5 field1 field2 field3 field4 field5
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 121 rows, which exceeds LIMIT ROWS EXAMINED (120). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 120. The query result may be incomplete
SHOW STATUS LIKE 'Handler_read%'; SHOW STATUS LIKE 'Handler_read%';
Variable_name Value Variable_name Value
Handler_read_first 1 Handler_read_first 1
...@@ -778,8 +778,8 @@ GROUP BY field1, field2, field3, field4, field5 ...@@ -778,8 +778,8 @@ GROUP BY field1, field2, field3, field4, field5
LIMIT ROWS EXAMINED 124; LIMIT ROWS EXAMINED 124;
field1 field2 field3 field4 field5 field1 field2 field3 field4 field5
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 125 rows, which exceeds LIMIT ROWS EXAMINED (124). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 124. The query result may be incomplete
Warning 1931 Query execution was interrupted. The query examined at least 127 rows, which exceeds LIMIT ROWS EXAMINED (124). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 124. The query result may be incomplete
SHOW STATUS LIKE 'Handler_read%'; SHOW STATUS LIKE 'Handler_read%';
Variable_name Value Variable_name Value
Handler_read_first 1 Handler_read_first 1
...@@ -822,7 +822,7 @@ WHERE b <= alias1.b OR e != alias2.c ...@@ -822,7 +822,7 @@ WHERE b <= alias1.b OR e != alias2.c
) LIMIT ROWS EXAMINED 20; ) LIMIT ROWS EXAMINED 20;
a b c a b c
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 25 rows, which exceeds LIMIT ROWS EXAMINED (20). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 20. The query result may be incomplete
drop table t1, t2, t3; drop table t1, t2, t3;
MDEV-174: LIMIT ROWS EXAMINED: Assertion `0' failed in net_end_statement(THD*) MDEV-174: LIMIT ROWS EXAMINED: Assertion `0' failed in net_end_statement(THD*)
...@@ -839,7 +839,7 @@ WHERE c = (SELECT MAX(b) FROM t2) ...@@ -839,7 +839,7 @@ WHERE c = (SELECT MAX(b) FROM t2)
LIMIT ROWS EXAMINED 3; LIMIT ROWS EXAMINED 3;
(SELECT MAX(c) FROM t1, t2) (SELECT MAX(c) FROM t1, t2)
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 12 rows, which exceeds LIMIT ROWS EXAMINED (3). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 3. The query result may be incomplete
drop table t1, t2; drop table t1, t2;
MDEV-178: LIMIT ROWS EXAMINED: Assertion `0' failed in net_end_statement(THD*) on the MDEV-178: LIMIT ROWS EXAMINED: Assertion `0' failed in net_end_statement(THD*) on the
...@@ -856,12 +856,12 @@ EXECUTE ps; ...@@ -856,12 +856,12 @@ EXECUTE ps;
a a
3 3
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 22 rows, which exceeds LIMIT ROWS EXAMINED (21). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 21. The query result may be incomplete
EXECUTE ps; EXECUTE ps;
a a
3 3
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 22 rows, which exceeds LIMIT ROWS EXAMINED (21). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 21. The query result may be incomplete
drop view v; drop view v;
drop table t1, t2; drop table t1, t2;
# #
...@@ -876,7 +876,7 @@ INSERT INTO t1 (k,c) VALUES(0,'0'), (0,'0'),(0,'0'),(0,'0'),(0,'0'),(0,'0'),(0,' ...@@ -876,7 +876,7 @@ INSERT INTO t1 (k,c) VALUES(0,'0'), (0,'0'),(0,'0'),(0,'0'),(0,'0'),(0,'0'),(0,'
SET @@sql_mode='STRICT_TRANS_TABLES'; SET @@sql_mode='STRICT_TRANS_TABLES';
INSERT INTO t1 (c) SELECT k FROM t1 LIMIT ROWS EXAMINED 2; INSERT INTO t1 (c) SELECT k FROM t1 LIMIT ROWS EXAMINED 2;
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 3 rows, which exceeds LIMIT ROWS EXAMINED (2). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 2. The query result may be incomplete
SET @@sql_mode=@old_mode; SET @@sql_mode=@old_mode;
DROP TABLE t1; DROP TABLE t1;
# #
......
...@@ -2760,7 +2760,7 @@ from t2 join t1 on ...@@ -2760,7 +2760,7 @@ from t2 join t1 on
('i','w') not in (select t1.v1,t4.v2 from t4,t1,t3 where t3.v2 = t1.v1) LIMIT ROWS EXAMINED 500; ('i','w') not in (select t1.v1,t4.v2 from t4,t1,t3 where t3.v2 = t1.v1) LIMIT ROWS EXAMINED 500;
1 1
Warnings: Warnings:
Warning 1931 Query execution was interrupted. The query examined at least 3020 rows, which exceeds LIMIT ROWS EXAMINED (500). The query result may be incomplete Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 500. The query result may be incomplete
SET join_cache_level= @save_join_cache_level; SET join_cache_level= @save_join_cache_level;
DROP TABLE t1,t2,t3,t4; DROP TABLE t1,t2,t3,t4;
# #
......
...@@ -8084,9 +8084,8 @@ ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_SKIP_REPLICATION ...@@ -8084,9 +8084,8 @@ ER_INSIDE_TRANSACTION_PREVENTS_SWITCH_SKIP_REPLICATION
ER_STORED_FUNCTION_PREVENTS_SWITCH_SKIP_REPLICATION ER_STORED_FUNCTION_PREVENTS_SWITCH_SKIP_REPLICATION
chi "无法修改存储函数或触发器内的@@session.skip_replication" chi "无法修改存储函数或触发器内的@@session.skip_replication"
eng "Cannot modify @@session.skip_replication inside a stored function or trigger" eng "Cannot modify @@session.skip_replication inside a stored function or trigger"
ER_QUERY_EXCEEDED_ROWS_EXAMINED_LIMIT ER_QUERY_RESULT_INCOMPLETE
chi "查询执行被中断。查询检查至少%llu行,超过限制行(%llu)。查询结果可能是不完整的" eng "Query execution was interrupted. The query exceeded %s %llu. The query result may be incomplete"
eng "Query execution was interrupted. The query examined at least %llu rows, which exceeds LIMIT ROWS EXAMINED (%llu). The query result may be incomplete"
ER_NO_SUCH_TABLE_IN_ENGINE 42S02 ER_NO_SUCH_TABLE_IN_ENGINE 42S02
chi "表'%-.192s.%-.192s'在引擎中不存在" chi "表'%-.192s.%-.192s'在引擎中不存在"
eng "Table '%-.192s.%-.192s' doesn't exist in engine" eng "Table '%-.192s.%-.192s' doesn't exist in engine"
......
...@@ -467,9 +467,9 @@ bool handle_select(THD *thd, LEX *lex, select_result *result, ...@@ -467,9 +467,9 @@ bool handle_select(THD *thd, LEX *lex, select_result *result,
bool saved_abort_on_warning= thd->abort_on_warning; bool saved_abort_on_warning= thd->abort_on_warning;
thd->abort_on_warning= false; thd->abort_on_warning= false;
push_warning_printf(thd, Sql_condition::WARN_LEVEL_WARN, push_warning_printf(thd, Sql_condition::WARN_LEVEL_WARN,
ER_QUERY_EXCEEDED_ROWS_EXAMINED_LIMIT, ER_QUERY_RESULT_INCOMPLETE,
ER_THD(thd, ER_QUERY_EXCEEDED_ROWS_EXAMINED_LIMIT), ER_THD(thd, ER_QUERY_RESULT_INCOMPLETE),
thd->accessed_rows_and_keys, "LIMIT ROWS EXAMINED",
thd->lex->limit_rows_examined->val_uint()); thd->lex->limit_rows_examined->val_uint());
thd->abort_on_warning= saved_abort_on_warning; thd->abort_on_warning= saved_abort_on_warning;
thd->reset_killed(); thd->reset_killed();
......
...@@ -1658,9 +1658,9 @@ bool st_select_lex_unit::exec() ...@@ -1658,9 +1658,9 @@ bool st_select_lex_unit::exec()
the current result. the current result.
*/ */
push_warning_printf(thd, Sql_condition::WARN_LEVEL_WARN, push_warning_printf(thd, Sql_condition::WARN_LEVEL_WARN,
ER_QUERY_EXCEEDED_ROWS_EXAMINED_LIMIT, ER_QUERY_RESULT_INCOMPLETE,
ER_THD(thd, ER_QUERY_EXCEEDED_ROWS_EXAMINED_LIMIT), ER_THD(thd, ER_QUERY_RESULT_INCOMPLETE),
thd->accessed_rows_and_keys, "LIMIT ROWS EXAMINED",
thd->lex->limit_rows_examined->val_uint()); thd->lex->limit_rows_examined->val_uint());
thd->reset_killed(); thd->reset_killed();
break; break;
......
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