Code clean-up.
sql/sql_select.cc: the if() separate arguments checks are slightly faster.
This commit is contained in:
parent
5b9903e1c8
commit
44f6c2937d
@ -7643,9 +7643,11 @@ static COND *build_equal_items_for_cond(THD *thd, COND *cond,
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
Check if we eliminated all the predicates of the level, e.g.
|
Check if we eliminated all the predicates of the level, e.g.
|
||||||
(a=a AND b=b AND a=a)
|
(a=a AND b=b AND a=a).
|
||||||
*/
|
*/
|
||||||
if (!(args->elements + cond_equal.current_level.elements + eq_list.elements))
|
if (!args->elements &&
|
||||||
|
!cond_equal.current_level.elements &&
|
||||||
|
!eq_list.elements)
|
||||||
return new Item_int((longlong) 1, 1);
|
return new Item_int((longlong) 1, 1);
|
||||||
|
|
||||||
List_iterator_fast<Item_equal> it(cond_equal.current_level);
|
List_iterator_fast<Item_equal> it(cond_equal.current_level);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user