ClickHouse/tests/queries/0_stateless/01310_enum_comparison.sql
Sema Checherinda 086cd4bb7e fix fast tests
2023-03-29 10:27:39 +02:00

7 lines
253 B
SQL

CREATE TEMPORARY TABLE enum (x Enum('hello' = 1, 'world' = 2));
INSERT INTO enum VALUES ('hello');
SELECT count() FROM enum WHERE x = 'hello';
SELECT count() FROM enum WHERE x = 'world';
SELECT count() FROM enum WHERE x = 'xyz'; -- { serverError 691 }