summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authormonty@narttu.mysql.fi <>2003-02-27 02:10:19 +0200
committermonty@narttu.mysql.fi <>2003-02-27 02:10:19 +0200
commitc20453ba9a0aea9c8d236f6bc42dc9be91cff6a4 (patch)
tree100a0bcb7776279c8d8c822cac9164e8c17acc14 /sql
parent61213dbc7a5c9b77985ff1dbf6f48e6a3293260f (diff)
downloadmariadb-git-c20453ba9a0aea9c8d236f6bc42dc9be91cff6a4.tar.gz
Integer values between 9223372036854775807 and 9999999999999999999 are now
regarded as unsigned longlongss, not as floats. This make these values work similar to values between 10000000000000000000 and 18446744073709551615.
Diffstat (limited to 'sql')
-rw-r--r--sql/item.h5
-rw-r--r--sql/sql_lex.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/sql/item.h b/sql/item.h
index c669c266f0f..a72079a6856 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -212,6 +212,11 @@ public:
String *val_str(String*);
void make_field(Send_field *field);
Item *new_item() { return new Item_uint(name,max_length); }
+ bool fix_fields(THD *thd,struct st_table_list *table_list)
+ {
+ unsigned_flag= 1;
+ return 0;
+ }
void print(String *str);
unsigned int size_of() { return sizeof(*this);}
};
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index 854f3924155..d5a225d95dd 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -407,7 +407,7 @@ inline static uint int_token(const char *str,uint length)
{
cmp=longlong_str;
smaller=LONG_NUM;
- bigger=REAL_NUM;
+ bigger= ULONGLONG_NUM;
}
}
while (*cmp && *cmp++ == *str++) ;