Merge pull request #51356 from ClickHouse/add-test-35801

Add a test for #35801
This commit is contained in:
Alexey Milovidov 2023-07-08 10:34:58 +03:00 committed by GitHub
commit 33d7cca9df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,2 @@
1 1977-01-01 00:00:00
1 1977-01-01 00:00:00

View File

@ -0,0 +1,18 @@
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;