ClickHouse/tests/queries/0_stateless/01933_invalid_date.sql
2024-05-30 19:41:08 +00:00

11 lines
428 B
SQL

SELECT toDate('07-08-2019'); -- { serverError CANNOT_PARSE_DATE }
SELECT toDate('2019-0708'); -- { serverError CANNOT_PARSE_DATE }
SELECT toDate('201907-08'); -- { serverError CANNOT_PARSE_DATE }
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 CANNOT_PARSE_DATE }
SELECT * FROM test WHERE d >= '2019-07-08';