diff options
author | unknown <ram@gw.mysql.r18.ru> | 2004-03-17 18:40:04 +0400 |
---|---|---|
committer | unknown <ram@gw.mysql.r18.ru> | 2004-03-17 18:40:04 +0400 |
commit | 6ff6a5eade2beabec82fb87c3b91578c71f6895e (patch) | |
tree | d5515bf24a38a52597d8b7e3319a18b319ca2b03 /sql/item.h | |
parent | 3d13c4027a6c30c3f57ae9c2b83530ca80a49356 (diff) | |
download | mariadb-git-6ff6a5eade2beabec82fb87c3b91578c71f6895e.tar.gz |
Code cleanup:
- added unsigned_flag= 1; to Item_uint constructors
- removed Item_uint::fix_fields()
- added a comment about fix_fields() call
sql/item.h:
added unsigned_flag= 1; to Item_uint constructors
removed Item_uint::fix_fields()
sql/item_func.cc:
added a comment about fix_fields() call.
Diffstat (limited to 'sql/item.h')
-rw-r--r-- | sql/item.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sql/item.h b/sql/item.h index 31641d42455..55db205f3a7 100644 --- a/sql/item.h +++ b/sql/item.h @@ -429,19 +429,13 @@ class Item_uint :public Item_int public: Item_uint(const char *str_arg, uint length) : Item_int(str_arg, (longlong) strtoull(str_arg,(char**) 0,10), length) - { fixed= 0; } + { unsigned_flag= 1; } Item_uint(uint32 i) :Item_int((longlong) i, 10) - { fixed= 0; } + { unsigned_flag= 1; } double val() { return ulonglong2double((ulonglong)value); } String *val_str(String*); Item *new_item() { return new Item_uint(name,max_length); } int save_in_field(Field *field, bool no_conversions); - bool fix_fields(THD *thd, struct st_table_list *list, Item **item) - { - bool res= Item::fix_fields(thd, list, item); - unsigned_flag= 1; - return res; - } void print(String *str); }; |