diff options
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r-- | sql/item_strfunc.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h index 9ae0c92673f..6bce7da7d52 100644 --- a/sql/item_strfunc.h +++ b/sql/item_strfunc.h @@ -1024,6 +1024,26 @@ public: table_map not_null_tables() const { return 0; } }; +class Item_func_weight_string :public Item_str_func +{ + String tmp_value; + uint flags; + uint nweights; + uint result_length; +public: + Item_func_weight_string(Item *a, uint result_length_arg, + uint nweights_arg, uint flags_arg) + :Item_str_func(a) + { + nweights= nweights_arg; + flags= flags_arg; + result_length= result_length_arg; + } + const char *func_name() const { return "weight_string"; } + String *val_str(String *); + void fix_length_and_dec(); +}; + class Item_func_crc32 :public Item_int_func { String value; |