mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-20 15:30:50 +00:00
14 lines
519 B
MySQL
14 lines
519 B
MySQL
|
-- When left and right element types are compatible, but the particular value
|
||
|
-- on the right is not in the range of the left type, it should be ignored.
|
||
|
select (toUInt8(1)) in (-1);
|
||
|
select (toUInt8(0)) in (-1);
|
||
|
select (toUInt8(255)) in (-1);
|
||
|
|
||
|
select [toUInt8(1)] in [-1];
|
||
|
select [toUInt8(0)] in [-1];
|
||
|
select [toUInt8(255)] in [-1];
|
||
|
|
||
|
-- When left and right element types are not compatible, we should get an error.
|
||
|
select (toUInt8(1)) in ('a'); -- { serverError 53 }
|
||
|
select [toUInt8(1)] in ['a']; -- { serverError 53 }
|