ClickHouse/tests/queries/0_stateless/01691_DateTime64_clamp.sql

7 lines
203 B
MySQL
Raw Normal View History

-- { echo }
SELECT toDateTime(-2, 2);
SELECT toDateTime64(-2, 2);
SELECT CAST(-1 AS DateTime64);
SELECT CAST('2020-01-01 00:00:00.3' AS DateTime64);
2021-02-05 19:06:23 +00:00
SELECT toDateTime64(bitShiftLeft(toUInt64(1),33), 2);