mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Merge of fix for bug#11758062 from mysql-5.1.
This commit is contained in:
commit
3cf0b4cc17
6 changed files with 13 additions and 13 deletions
|
|
@ -41,7 +41,7 @@ id name id name
|
|||
SET @@session.max_join_size=8;
|
||||
## Since total joins are more than max_join_size value so error will occur ##
|
||||
SELECT * FROM t1 INNER JOIN t2 ON t1.id = t2.id;
|
||||
ERROR 42000: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay
|
||||
ERROR 42000: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay
|
||||
'#--------------------FN_DYNVARS_079_03-------------------------#'
|
||||
## Setting global value of variable ##
|
||||
SET @@global.max_join_size=8;
|
||||
|
|
@ -52,7 +52,7 @@ SELECT @@global.max_join_size;
|
|||
8
|
||||
## Since total joins are more than max_join_size value so error will occur ##
|
||||
SELECT * FROM t1 INNER JOIN t2 ON t1.id = t2.id;
|
||||
ERROR 42000: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay
|
||||
ERROR 42000: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay
|
||||
## Dropping both the tables ##
|
||||
Drop table t1, t2;
|
||||
## Restoring values ##
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ INSERT INTO t2 VALUES('aa4','bb');
|
|||
'#--------------------FN_DYNVARS_154_01-------------------------#'
|
||||
Expected error "Too big select"
|
||||
SELECT * FROM t1 INNER JOIN t2 ON t1.a = t2.a;
|
||||
ERROR 42000: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay
|
||||
ERROR 42000: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay
|
||||
Expected error The SELECT would examine more than MAX_JOIN_SIZE rows.
|
||||
'#--------------------FN_DYNVARS_154_02-------------------------#'
|
||||
SET SESSION SQL_BIG_SELECTS = 1;
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ SET SESSION sql_max_join_size=9;
|
|||
Warnings:
|
||||
Warning 1287 The syntax '@@sql_max_join_size' is deprecated and will be removed in MySQL 7.0.
|
||||
SELECT * FROM t1 INNER JOIN t2 ON t1.a = t2.a;
|
||||
ERROR 42000: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay
|
||||
ERROR 42000: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay
|
||||
Expected error The SELECT would examine more than MAX_JOIN_SIZE rows.
|
||||
'#--------------------FN_DYNVARS_161_02-------------------------#'
|
||||
SET SESSION SQL_BIG_SELECTS = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue