From 855d36be45af5b15829dcee2926d8825d9f01384 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 22 Mar 2021 23:12:01 +0300 Subject: [PATCH] Add a test for #16924 --- tests/queries/0_stateless/01770_extended_range_3.reference | 2 ++ tests/queries/0_stateless/01770_extended_range_3.sql | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 tests/queries/0_stateless/01770_extended_range_3.reference create mode 100644 tests/queries/0_stateless/01770_extended_range_3.sql diff --git a/tests/queries/0_stateless/01770_extended_range_3.reference b/tests/queries/0_stateless/01770_extended_range_3.reference new file mode 100644 index 00000000000..1a35ee6cc1e --- /dev/null +++ b/tests/queries/0_stateless/01770_extended_range_3.reference @@ -0,0 +1,2 @@ +1984-04-01 08:00:00 +1985-03-31 09:00:00 diff --git a/tests/queries/0_stateless/01770_extended_range_3.sql b/tests/queries/0_stateless/01770_extended_range_3.sql new file mode 100644 index 00000000000..68e0782d3d5 --- /dev/null +++ b/tests/queries/0_stateless/01770_extended_range_3.sql @@ -0,0 +1,2 @@ +SELECT addHours(toDateTime64('1984-03-31 23:00:00', 0, 'Asia/Novosibirsk'), 8); +SELECT addHours(toDateTime64('1985-03-31 00:00:00', 0, 'Asia/Novosibirsk'), 8);