diff options
author | unknown <monty@narttu.mysql.fi> | 2003-02-27 02:10:19 +0200 |
---|---|---|
committer | unknown <monty@narttu.mysql.fi> | 2003-02-27 02:10:19 +0200 |
commit | 3f9ea80268126f8401bd27f03b842cd03cde7c9f (patch) | |
tree | 100a0bcb7776279c8d8c822cac9164e8c17acc14 /sql/item.h | |
parent | 66afa065530f724702b82e51c3c88a8770330230 (diff) | |
download | mariadb-git-3f9ea80268126f8401bd27f03b842cd03cde7c9f.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.
mysql-test/r/bigint.result:
Fixed results for bigints
mysql-test/t/bigint.test:
Fixed results for bigints
sql/item.h:
Mark unsigned big ints as unsigned
sql/sql_lex.cc:
Returns numbers between 9223372036854775807 and 9999999999999999999 as unsigned 64 bit numbers
Diffstat (limited to 'sql/item.h')
-rw-r--r-- | sql/item.h | 5 |
1 files changed, 5 insertions, 0 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);} }; |