diff options
author | unknown <ram@gw.mysql.r18.ru> | 2004-12-17 18:06:05 +0400 |
---|---|---|
committer | unknown <ram@gw.mysql.r18.ru> | 2004-12-17 18:06:05 +0400 |
commit | d7285006cfcd93b13ec9c0f886ec542d7365fbfd (patch) | |
tree | 2e6c553f1097aea129caca8a5d200ff4f446a230 /sql/item.h | |
parent | eaec00b19b0dfe26bbe4297edfea04e277af27ed (diff) | |
download | mariadb-git-d7285006cfcd93b13ec9c0f886ec542d7365fbfd.tar.gz |
bit type
Diffstat (limited to 'sql/item.h')
-rw-r--r-- | sql/item.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sql/item.h b/sql/item.h index cf3dc8896a5..d5361bdcc8a 100644 --- a/sql/item.h +++ b/sql/item.h @@ -959,13 +959,14 @@ public: }; -class Item_varbinary :public Item +class Item_hex_string: public Item { public: - Item_varbinary(const char *str,uint str_length); + Item_hex_string(): Item() {} + Item_hex_string(const char *str,uint str_length); enum Type type() const { return VARBIN_ITEM; } double val_real() - { DBUG_ASSERT(fixed == 1); return (double) Item_varbinary::val_int(); } + { DBUG_ASSERT(fixed == 1); return (double) Item_hex_string::val_int(); } longlong val_int(); bool basic_const_item() const { return 1; } String *val_str(String*) { DBUG_ASSERT(fixed == 1); return &str_value; } @@ -977,6 +978,12 @@ public: }; +class Item_bin_string: public Item_hex_string +{ +public: + Item_bin_string(const char *str,uint str_length); +}; + class Item_result_field :public Item /* Item with result field */ { public: |