diff options
Diffstat (limited to 'sql/item_func.h')
-rw-r--r-- | sql/item_func.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sql/item_func.h b/sql/item_func.h index e4dc1d80bf9..3185df91dca 100644 --- a/sql/item_func.h +++ b/sql/item_func.h @@ -1031,6 +1031,19 @@ public: }; +class Item_func_hash: public Item_int_func +{ +public: + Item_func_hash(THD *thd, List<Item> &item): Item_int_func(thd, item) + {} + longlong val_int(); + bool fix_length_and_dec(); + const Type_handler *type_handler() const { return &type_handler_long; } + Item *get_copy(THD *thd) + { return get_item_copy<Item_func_hash>(thd, this); } + const char *func_name() const { return "<hash>"; } +}; + class Item_longlong_func: public Item_int_func { public: |