mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Added item.real_type() for easy access to the underlaying types for Item_ref and Item_cache_wrapper()
This allows us to simplify and speed up some tests and also remove get_cached_item() sql/item.h: Added item.real_type() Removed get_cached_item() sql/opt_range.cc: Simplify test sql/sql_select.cc: Simplify test sql/sql_show.cc: Simplify test
This commit is contained in:
@ -11707,9 +11707,7 @@ check_group_min_max_predicates(COND *cond, Item_field *min_max_arg_item,
|
||||
the MIN/MAX argument field, and disallow the optimization only if this is
|
||||
so.
|
||||
*/
|
||||
if (cond_type == Item::SUBSELECT_ITEM ||
|
||||
(cond->get_cached_item() &&
|
||||
cond->get_cached_item()->type() == Item::SUBSELECT_ITEM))
|
||||
if (cond->real_type() == Item::SUBSELECT_ITEM)
|
||||
DBUG_RETURN(FALSE);
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user