mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
MDEV-6513 deprecate engine_condition_pushdown value of the @@optimizer_switch
* ignore the OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN bit * issue a deprecation warning on 'engine_condition_pushdown=on' * remove unused remains of the old pre-5.5 engine_condition_pushdown variable
This commit is contained in:
parent
686f102eb9
commit
ab34aecff3
14 changed files with 26 additions and 342 deletions
|
|
@ -245,7 +245,7 @@ a b c
|
|||
direct order limit
|
||||
SHOW STATUS LIKE 'Spider_direct_order_limit';
|
||||
Variable_name Value
|
||||
Spider_direct_order_limit 0
|
||||
Spider_direct_order_limit 2
|
||||
SELECT a, b, c FROM ta_l_int ORDER BY a LIMIT 3;
|
||||
a b c
|
||||
1 2 4
|
||||
|
|
@ -253,7 +253,7 @@ a b c
|
|||
3 4 5
|
||||
SHOW STATUS LIKE 'Spider_direct_order_limit';
|
||||
Variable_name Value
|
||||
Spider_direct_order_limit 0
|
||||
Spider_direct_order_limit 3
|
||||
|
||||
2.26
|
||||
lock tables
|
||||
|
|
|
|||
|
|
@ -245,7 +245,7 @@ a b c
|
|||
direct order limit
|
||||
SHOW STATUS LIKE 'Spider_direct_order_limit';
|
||||
Variable_name Value
|
||||
Spider_direct_order_limit 0
|
||||
Spider_direct_order_limit 2
|
||||
SELECT a, b, c FROM ta_l_int ORDER BY a LIMIT 3;
|
||||
a b c
|
||||
1 2 4
|
||||
|
|
@ -253,7 +253,7 @@ a b c
|
|||
3 4 5
|
||||
SHOW STATUS LIKE 'Spider_direct_order_limit';
|
||||
Variable_name Value
|
||||
Spider_direct_order_limit 0
|
||||
Spider_direct_order_limit 3
|
||||
|
||||
2.26
|
||||
lock tables
|
||||
|
|
|
|||
|
|
@ -7870,12 +7870,6 @@ bool spider_check_direct_order_limit(
|
|||
DBUG_PRINT("info",("spider select_limit=%lld", select_limit));
|
||||
DBUG_PRINT("info",("spider offset_limit=%lld", offset_limit));
|
||||
if (
|
||||
#if MYSQL_VERSION_ID < 50500
|
||||
!thd->variables.engine_condition_pushdown ||
|
||||
#else
|
||||
!(thd->variables.optimizer_switch &
|
||||
OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN) ||
|
||||
#endif
|
||||
!select_lex ||
|
||||
#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100000
|
||||
select_lex->leaf_tables.elements != 1 ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue