mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Clean-up:
- Renaming Item::is_bool_func() to is_bool_type(), to avoid assumption that the item is an Item_func derivant. - Deriving Item_func_spatial_rel from Item_bool_func rather than Item_int_func
This commit is contained in:
@ -8755,7 +8755,7 @@ Item *negate_expression(THD *thd, Item *expr)
|
||||
/* it is NOT(NOT( ... )) */
|
||||
Item *arg= ((Item_func *) expr)->arguments()[0];
|
||||
enum_parsing_place place= thd->lex->current_select->parsing_place;
|
||||
if (arg->is_bool_func() || place == IN_WHERE || place == IN_HAVING)
|
||||
if (arg->is_bool_type() || place == IN_WHERE || place == IN_HAVING)
|
||||
return arg;
|
||||
/*
|
||||
if it is not boolean function then we have to emulate value of
|
||||
|
Reference in New Issue
Block a user