1
0
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:
Alexander Barkov
2015-03-12 13:40:52 +04:00
parent a71e2d23bd
commit ba3573cae8
8 changed files with 23 additions and 16 deletions

View File

@ -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