summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/sql/item.h b/sql/item.h
index 9ad633d9278..98abdc834d9 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -181,6 +181,19 @@ public:
};
+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) {}
+ double val() { return ulonglong2double(value); }
+ String *val_str(String*);
+ void make_field(Send_field *field);
+ Item *new_item() { return new Item_uint(name,max_length); }
+ void print(String *str);
+};
+
+
class Item_real :public Item
{
public: