ClickHouse/tests/queries/0_stateless/01933_invalid_date.sql

11 lines
367 B
MySQL
Raw Normal View History

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