|
My Project
|
#include <item_cmpfunc.h>
Public Member Functions | |
| Item_func_xor (Item *i1, Item *i2) | |
| enum Functype | functype () const |
| const char * | func_name () const |
| longlong | val_int () |
| void | top_level_item () |
| Item * | neg_transformer (THD *thd) |
XOR inherits from Item_bool_func2 because it is not optimized yet. Later, when XOR is optimized, it needs to inherit from Item_cond instead. See WL#5800.
| Item * Item_func_xor::neg_transformer | ( | THD * | thd | ) | [virtual] |
XOR can be negated by negating one of the operands:
NOT (a XOR b) => (NOT a) XOR b => a XOR (NOT b)
| thd | Thread handle |
Reimplemented from Item.
| longlong Item_func_xor::val_int | ( | void | ) | [virtual] |
Make a logical XOR of the arguments.
If either operator is NULL, return NULL.
Implements Item.
1.7.6.1