Fix tests

This commit is contained in:
Alexey Milovidov 2021-07-18 18:01:16 +03:00
parent 4a74cb7cef
commit eb134377b2
3 changed files with 7 additions and 12 deletions

View File

@ -5,7 +5,7 @@ INSERT INTO t VALUES (3, '1111111111222');
INSERT INTO t VALUES (4, '1111111111.222'); INSERT INTO t VALUES (4, '1111111111.222');
SELECT * FROM t ORDER BY i; SELECT * FROM t ORDER BY i;
SELECT toDateTime64(1111111111.222, 3); SELECT toDateTime64(1111111111.222, 3, 'Europe/Moscow');
SELECT toDateTime64('1111111111.222', 3); SELECT toDateTime64('1111111111.222', 3, 'Europe/Moscow');
SELECT toDateTime64('1111111111222', 3); SELECT toDateTime64('1111111111222', 3, 'Europe/Moscow');
SELECT ignore(toDateTime64(1111111111222, 3)); -- This gives somewhat correct but unexpected result SELECT ignore(toDateTime64(1111111111222, 3, 'Europe/Moscow')); -- This gives somewhat correct but unexpected result

View File

@ -1,7 +1,3 @@
-- { echo }
SELECT CAST(1111111111.222 AS DateTime64(3));
2005-03-18 04:58:31.222 2005-03-18 04:58:31.222
SELECT toDateTime(1111111111.222, 3);
2005-03-18 04:58:31.222 2005-03-18 04:58:31.222
SELECT toDateTime64(1111111111.222, 3);
2005-03-18 04:58:31.222 2005-03-18 04:58:31.222

View File

@ -1,4 +1,3 @@
-- { echo } SELECT CAST(1111111111.222 AS DateTime64(3, 'Europe/Moscow'));
SELECT CAST(1111111111.222 AS DateTime64(3)); SELECT toDateTime(1111111111.222, 3, 'Europe/Moscow');
SELECT toDateTime(1111111111.222, 3); SELECT toDateTime64(1111111111.222, 3, 'Europe/Moscow');
SELECT toDateTime64(1111111111.222, 3);