ClickHouse/tests/queries/0_stateless/01933_invalid_date.sql
2023-11-14 21:06:49 +00:00

11 lines
368 B
SQL

SELECT toDate('07-08-2019'); -- { serverError 38 }
SELECT toDate('2019-0708'); -- { serverError 38 }
SELECT toDate('201907-08'); -- { serverError 38 }
SELECT toDate('2019^7^8');
CREATE TEMPORARY TABLE test (d Date);
INSERT INTO test VALUES ('2018-01-01');
SELECT * FROM test WHERE d >= '07-08-2019'; -- { serverError 38 }
SELECT * FROM test WHERE d >= '2019-07-08';