mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 18:32:29 +00:00
add test
This commit is contained in:
parent
ca49fcfc38
commit
ccce7e8ba4
@ -0,0 +1,6 @@
|
|||||||
|
a
|
||||||
|
a
|
||||||
|
a
|
||||||
|
a
|
||||||
|
a
|
||||||
|
a
|
22
tests/queries/0_stateless/03278_enum_in_unknown_value.sql
Normal file
22
tests/queries/0_stateless/03278_enum_in_unknown_value.sql
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
DROP TABLE IF EXISTS t_enum_in_unknown_value;
|
||||||
|
|
||||||
|
CREATE TABLE t_enum_in_unknown_value (e Enum('a'=1, 'b'=2)) ENGINE=Memory;
|
||||||
|
|
||||||
|
INSERT INTO t_enum_in_unknown_value VALUES ('a');
|
||||||
|
|
||||||
|
SELECT * FROM t_enum_in_unknown_value;
|
||||||
|
|
||||||
|
SELECT * FROM t_enum_in_unknown_value WHERE e IN ('a');
|
||||||
|
SELECT * FROM t_enum_in_unknown_value WHERE e NOT IN ('a');
|
||||||
|
|
||||||
|
SELECT * FROM t_enum_in_unknown_value WHERE e IN ('a', 'b');
|
||||||
|
SELECT * FROM t_enum_in_unknown_value WHERE e NOT IN ('a', 'b');
|
||||||
|
|
||||||
|
SELECT * FROM t_enum_in_unknown_value WHERE e IN ('a', 'c');
|
||||||
|
SELECT * FROM t_enum_in_unknown_value WHERE e NOT IN ('a', 'c');
|
||||||
|
|
||||||
|
SELECT * FROM t_enum_in_unknown_value WHERE e IN ('a', 'b', 'c');
|
||||||
|
SELECT * FROM t_enum_in_unknown_value WHERE e NOT IN ('a', 'b', 'c');
|
||||||
|
|
||||||
|
SELECT * FROM t_enum_in_unknown_value WHERE e IN ('c');
|
||||||
|
SELECT * FROM t_enum_in_unknown_value WHERE e NOT IN ('c');
|
Loading…
Reference in New Issue
Block a user