2021-01-22 21:25:49 +00:00
|
|
|
-- { echo }
|
2021-01-24 08:32:00 +00:00
|
|
|
-- tests with INT64_MIN (via overflow)
|
2021-01-22 21:25:49 +00:00
|
|
|
SELECT addMinutes(toDateTime('2021-01-01 00:00:00', 'GMT'), 9223372036854775808);
|
|
|
|
2021-01-01 00:00:00
|
|
|
|
SELECT addHours(toDateTime('2021-01-01 00:00:00', 'GMT'), 9223372036854775808);
|
|
|
|
2021-01-01 00:00:00
|
|
|
|
SELECT addWeeks(toDateTime('2021-01-01 00:00:00', 'GMT'), 9223372036854775808);
|
|
|
|
2021-01-01 00:00:00
|
2021-01-24 08:32:00 +00:00
|
|
|
SELECT addDays(toDateTime('2021-01-01 00:00:00', 'GMT'), 9223372036854775808);
|
|
|
|
2021-01-01 00:00:00
|
|
|
|
-- tests with INT64_MAX
|
|
|
|
SELECT addMinutes(toDateTime('2020-01-01 00:00:00', 'GMT'), 9223372036854775807);
|
|
|
|
2019-12-31 23:59:00
|
|
|
|
SELECT addHours(toDateTime('2020-01-01 00:00:00', 'GMT'), 9223372036854775807);
|
|
|
|
2019-12-31 23:00:00
|
|
|
|
SELECT addWeeks(toDateTime('2020-01-01 00:00:00', 'GMT'), 9223372036854775807);
|
|
|
|
2019-12-25 00:00:00
|
|
|
|
SELECT addDays(toDateTime('2020-01-01 00:00:00', 'GMT'), 9223372036854775807);
|
|
|
|
2019-12-31 00:00:00
|
2021-01-23 05:25:07 +00:00
|
|
|
-- tests with inf
|
|
|
|
SELECT addMinutes(toDateTime('2021-01-01 00:00:00', 'GMT'), inf);
|
|
|
|
2021-01-01 00:00:00
|
|
|
|
SELECT addHours(toDateTime('2021-01-01 00:00:00', 'GMT'), inf);
|
|
|
|
2021-01-01 00:00:00
|
|
|
|
SELECT addWeeks(toDateTime('2021-01-01 00:00:00', 'GMT'), inf);
|
|
|
|
2021-01-01 00:00:00
|
2021-01-24 08:32:00 +00:00
|
|
|
SELECT addDays(toDateTime('2021-01-01 00:00:00', 'GMT'), inf);
|
|
|
|
2021-01-01 00:00:00
|