diff options
author | Alexander Barkov <bar@mariadb.org> | 2017-05-20 16:29:11 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-05-20 16:29:11 +0400 |
commit | a8caa8e04a27f7463abd4fd588a4ce1799e600c7 (patch) | |
tree | eed0aa6dbbe164a32d79e47d4be52c09ec55c1df /sql/item_strfunc.h | |
parent | d2fec340d25c24c8862f461b1f3272c098e67d54 (diff) | |
download | mariadb-git-a8caa8e04a27f7463abd4fd588a4ce1799e600c7.tar.gz |
MDEV-12854 Synchronize CREATE..SELECT data type and result set metadata data type for INT functions
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r-- | sql/item_strfunc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h index 6e31d489574..6310d15b4e7 100644 --- a/sql/item_strfunc.h +++ b/sql/item_strfunc.h @@ -1444,11 +1444,11 @@ public: { return get_item_copy<Item_func_weight_string>(thd, mem_root, this); } }; -class Item_func_crc32 :public Item_int_func +class Item_func_crc32 :public Item_long_func { String value; public: - Item_func_crc32(THD *thd, Item *a): Item_int_func(thd, a) + Item_func_crc32(THD *thd, Item *a): Item_long_func(thd, a) { unsigned_flag= 1; } const char *func_name() const { return "crc32"; } void fix_length_and_dec() { max_length=10; } @@ -1457,11 +1457,11 @@ public: { return get_item_copy<Item_func_crc32>(thd, mem_root, this); } }; -class Item_func_uncompressed_length : public Item_int_func +class Item_func_uncompressed_length : public Item_long_func { String value; public: - Item_func_uncompressed_length(THD *thd, Item *a): Item_int_func(thd, a) {} + Item_func_uncompressed_length(THD *thd, Item *a): Item_long_func(thd, a) {} const char *func_name() const{return "uncompressed_length";} void fix_length_and_dec() { max_length=10; maybe_null= true; } longlong val_int(); |