ClickHouse/tests/queries/0_stateless/01736_null_as_default.sql

8 lines
261 B
MySQL
Raw Normal View History

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;