summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorunknown <monty@narttu.mysql.fi>2003-02-27 02:10:19 +0200
committerunknown <monty@narttu.mysql.fi>2003-02-27 02:10:19 +0200
commit3f9ea80268126f8401bd27f03b842cd03cde7c9f (patch)
tree100a0bcb7776279c8d8c822cac9164e8c17acc14 /sql/sql_lex.cc
parent66afa065530f724702b82e51c3c88a8770330230 (diff)
downloadmariadb-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/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc2
1 files changed, 1 insertions, 1 deletions
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++) ;