mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 07:35:32 +02:00
BUG#884631: Table elimination works 5.3 release builds even if turned off
- Make table elimination to actually switch itself on/off in release builds.
This commit is contained in:
parent
57b3fefa03
commit
acb2d4aad8
2 changed files with 2 additions and 3 deletions
|
|
@ -588,10 +588,8 @@ void eliminate_tables(JOIN *join)
|
|||
if (!join->outer_join)
|
||||
DBUG_VOID_RETURN;
|
||||
|
||||
#ifndef DBUG_OFF
|
||||
if (!optimizer_flag(thd, OPTIMIZER_SWITCH_TABLE_ELIMINATION))
|
||||
DBUG_VOID_RETURN; /* purecov: inspected */
|
||||
#endif
|
||||
|
||||
/* Find the tables that are referred to from WHERE/HAVING */
|
||||
used_tables= (join->conds? join->conds->used_tables() : 0) |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue