diff options
Diffstat (limited to 'sql')
-rw-r--r-- | sql/item_cmpfunc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h index b20a741c6b4..d764126151c 100644 --- a/sql/item_cmpfunc.h +++ b/sql/item_cmpfunc.h @@ -442,6 +442,11 @@ public: Item_args::propagate_equal_fields(thd, ANY_SUBST, cond); return this; } + void fix_length_and_dec() + { + Item_bool_func::fix_length_and_dec(); + args[0]->cmp_context= args[1]->cmp_context= INT_RESULT; + } }; class Item_func_not :public Item_bool_func |