ClickHouse/tests/queries/0_stateless/01001_enums_in_in_section.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
310 B
MySQL
Raw Normal View History

2019-09-13 19:07:22 +00:00
DROP TABLE IF EXISTS enums;
CREATE TABLE enums AS VALUES('x Enum8(\'hello\' = 0, \'world\' = 1, \'foo\' = -1), y String', ('hello', 'find me'), (0, 'and me'), (-1, 'also me'), ('world', 'don\'t find me'));
SELECT y FROM enums WHERE x IN (0, -1);
SELECT y FROM enums WHERE x IN ('hello', -1);
2019-09-13 19:09:00 +00:00
DROP TABLE enums;