mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
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.
This commit is contained in:
@ -6,13 +6,13 @@ select 9223372036854775807,-009223372036854775808;
|
||||
9223372036854775807 -9223372036854775808
|
||||
select +9999999999999999999,-9999999999999999999;
|
||||
+9999999999999999999 -9999999999999999999
|
||||
10000000000000000000 -10000000000000000000
|
||||
9999999999999999999 -10000000000000000000
|
||||
select cast(9223372036854775808 as unsigned)+1;
|
||||
cast(9223372036854775808 as unsigned)+1
|
||||
9223372036854775809
|
||||
select 9223372036854775808+1;
|
||||
9223372036854775808+1
|
||||
9223372036854775808
|
||||
9223372036854775809
|
||||
drop table if exists t1;
|
||||
create table t1 (a bigint unsigned not null, primary key(a));
|
||||
insert into t1 values (18446744073709551615), (0xFFFFFFFFFFFFFFFE);
|
||||
|
@ -5,12 +5,6 @@ select 0,256,00000000000000065536,2147483647,-2147483648,2147483648,+4294967296;
|
||||
select 9223372036854775807,-009223372036854775808;
|
||||
select +9999999999999999999,-9999999999999999999;
|
||||
select cast(9223372036854775808 as unsigned)+1;
|
||||
|
||||
#
|
||||
# We need to do a REPLACE here as the atof() function returns different
|
||||
# values on True64 and HPUX11
|
||||
#
|
||||
--replace_result 9223372036854775800 9223372036854775808
|
||||
select 9223372036854775808+1;
|
||||
#
|
||||
# In 3.23 we have to disable the test of column to bigint as
|
||||
|
Reference in New Issue
Block a user