ClickHouse/tests/queries/0_stateless/01736_null_as_default.sql
2021-07-21 14:16:05 +03:00

8 lines
261 B
SQL

drop table if exists test_enum;
create table test_enum (c Nullable(Enum16('A' = 1, 'B' = 2))) engine Log;
insert into test_enum values (1), (NULL);
select * from test_enum;
select toString(c) from test_enum;
select toString('aaaa', NULL);
drop table test_enum;