Added test [#CLICKHOUSE-3393].

This commit is contained in:
Alexey Milovidov 2017-10-30 08:38:24 +03:00 committed by alexey-milovidov
parent ad8afcc022
commit 2690c920f9
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,38 @@
2016-11-30 08:18:19
2017-10-31 01:58:29
2017-10-31 08:18:19
2017-11-30 08:18:19
2017-12-31 08:18:19
2018-01-31 08:18:19
2018-02-28 08:18:19
2018-03-31 08:18:19
2018-04-30 08:18:19
2018-05-31 08:18:19
2018-06-30 08:18:19
2018-07-31 08:18:19
2018-08-31 08:18:19
2018-09-30 08:18:19
2018-10-31 08:18:19
2018-11-30 08:18:19
2018-12-31 08:18:19
2019-01-31 08:18:19
2019-02-28 08:18:19
2019-03-31 08:18:19
2019-04-30 08:18:19
2019-05-31 08:18:19
2016-02-29 01:02:03 2016-02-29 01:02:03
2017-02-28 01:02:03 2016-03-29 01:02:03
2018-02-28 01:02:03 2016-04-29 01:02:03
2019-02-28 01:02:03 2016-05-29 01:02:03
2020-02-29 01:02:03 2016-06-29 01:02:03
2021-02-28 01:02:03 2016-07-29 01:02:03
2022-02-28 01:02:03 2016-08-29 01:02:03
2023-02-28 01:02:03 2016-09-29 01:02:03
2024-02-29 01:02:03 2016-10-29 01:02:03
2025-02-28 01:02:03 2016-11-29 01:02:03
2026-02-28 01:02:03 2016-12-29 01:02:03
2027-02-28 01:02:03 2017-01-29 01:02:03
2028-02-29 01:02:03 2017-02-28 01:02:03
2029-02-28 01:02:03 2017-03-29 01:02:03
2030-02-28 01:02:03 2017-04-29 01:02:03
2031-02-28 01:02:03 2017-05-29 01:02:03

View File

@ -0,0 +1,4 @@
SELECT toDateTime('2017-10-30 08:18:19') + INTERVAL 1 DAY + INTERVAL 1 MONTH - INTERVAL 1 YEAR;
SELECT toDateTime('2017-10-30 08:18:19') + INTERVAL 1 HOUR + INTERVAL 1000 MINUTE + INTERVAL 10 SECOND;
SELECT toDateTime('2017-10-30 08:18:19') + INTERVAL 1 DAY + INTERVAL number MONTH FROM system.numbers LIMIT 20;
SELECT toDateTime('2016-02-29 01:02:03') + INTERVAL number YEAR, toDateTime('2016-02-29 01:02:03') + INTERVAL number MONTH FROM system.numbers LIMIT 16;