mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Fix handling of comparisons done by IN() to be consistent with how they
are done for the = operator, such as when doing a comparison with a large unsigned number that was quoted. (Bug #12612)
This commit is contained in:
@ -27,3 +27,12 @@ id value
|
||||
select * from t1 where id <=> value or value<=>id;
|
||||
id value
|
||||
drop table t1,t2;
|
||||
create table t1 (a bigint unsigned);
|
||||
insert into t1 values (4828532208463511553);
|
||||
select * from t1 where a = '4828532208463511553';
|
||||
a
|
||||
4828532208463511553
|
||||
select * from t1 where a in ('4828532208463511553');
|
||||
a
|
||||
4828532208463511553
|
||||
drop table t1;
|
||||
|
@ -32,4 +32,13 @@ select * from t1 where value <=> value;
|
||||
select * from t1 where id <=> value or value<=>id;
|
||||
drop table t1,t2;
|
||||
|
||||
#
|
||||
# Bug #12612: quoted bigint unsigned value and the use of "in" in where clause
|
||||
#
|
||||
create table t1 (a bigint unsigned);
|
||||
insert into t1 values (4828532208463511553);
|
||||
select * from t1 where a = '4828532208463511553';
|
||||
select * from t1 where a in ('4828532208463511553');
|
||||
drop table t1;
|
||||
|
||||
# End of 4.1 tests
|
||||
|
Reference in New Issue
Block a user