From 8f87914bae2dcfcfe987945d4180452f894046c3 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 22 Mar 2021 23:07:15 +0300 Subject: [PATCH] Add a test for #16222 --- tests/queries/0_stateless/01769_extended_range_2.reference | 3 +++ tests/queries/0_stateless/01769_extended_range_2.sql | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 tests/queries/0_stateless/01769_extended_range_2.reference create mode 100644 tests/queries/0_stateless/01769_extended_range_2.sql diff --git a/tests/queries/0_stateless/01769_extended_range_2.reference b/tests/queries/0_stateless/01769_extended_range_2.reference new file mode 100644 index 00000000000..e9c4e1d8604 --- /dev/null +++ b/tests/queries/0_stateless/01769_extended_range_2.reference @@ -0,0 +1,3 @@ +1969-12-31 18:00:12 +1969-12-30 18:00:12 +1969-12-31 18:00:12 diff --git a/tests/queries/0_stateless/01769_extended_range_2.sql b/tests/queries/0_stateless/01769_extended_range_2.sql new file mode 100644 index 00000000000..a2570c9397b --- /dev/null +++ b/tests/queries/0_stateless/01769_extended_range_2.sql @@ -0,0 +1,3 @@ +SELECT toDateTime64('1969-12-31 18:00:12', 0, 'America/Phoenix'); +SELECT toDateTime64('1969-12-30 18:00:12', 0, 'America/Phoenix'); +SELECT toDateTime64('1969-12-31 18:00:12', 0, 'Europe/Moscow');