ClickHouse/tests/queries/0_stateless/02807_default_date_time_nullable.sql

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

19 lines
384 B
MySQL
Raw Normal View History

2023-06-24 06:05:45 +00:00
create temporary table test (
data int,
default Nullable(DateTime) DEFAULT '1977-01-01 00:00:00'
) engine = Memory();
insert into test (data) select 1;
select * from test;
drop temporary table test;
create temporary table test (
data int,
default DateTime DEFAULT '1977-01-01 00:00:00'
) engine = Memory();
insert into test (data) select 1;
select * from test;