Fix and improve test

This commit is contained in:
Alexey Milovidov 2021-07-18 18:04:32 +03:00
parent 4587ddaeeb
commit ad4c6a63e1
2 changed files with 6 additions and 8 deletions

View File

@ -1,9 +1,5 @@
-- { echo }
select toDateTime64(toDateTime(1), 2);
1970-01-01 03:00:01.00 1970-01-01 03:00:01.00
select toDateTime64(toDate(1), 2); 1970-01-01 03:00:01.00
1970-01-02 00:00:00.00 1970-01-02 00:00:00.00
select toDateTime64(toDateTime(1), 2, 'GMT');
1970-01-01 00:00:01.00 1970-01-01 00:00:01.00
select toDateTime64(toDate(1), 2, 'GMT');
1970-01-02 00:00:00.00 1970-01-02 00:00:00.00

View File

@ -1,5 +1,7 @@
-- { echo } select toDateTime64(toDateTime(1, 'Europe/Moscow'), 2);
select toDateTime64(toDateTime(1), 2); select toDateTime64(toDate(1), 2) FORMAT Null; -- Unknown timezone
select toDateTime64(toDate(1), 2); select toDateTime64(toDateTime(1), 2) FORMAT Null; -- Unknown timezone
select toDateTime64(toDateTime(1), 2, 'Europe/Moscow');
select toDateTime64(toDate(1), 2, 'Europe/Moscow');
select toDateTime64(toDateTime(1), 2, 'GMT'); select toDateTime64(toDateTime(1), 2, 'GMT');
select toDateTime64(toDate(1), 2, 'GMT'); select toDateTime64(toDate(1), 2, 'GMT');