ClickHouse/tests/queries/0_stateless/00762_date_comparsion.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
679 B
MySQL
Raw Normal View History

2020-06-20 11:29:01 +00:00
SET send_logs_level = 'fatal';
select today() < 2018-11-14; -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
select toDate('2018-01-01') < '2018-11-14';
select toDate('2018-01-01') < '2018-01-01';
select toDate('2018-01-01') == '2018-01-01';
select toDate('2018-01-01') != '2018-01-01';
select toDate('2018-01-01') < toDate('2018-01-01');
select toDate('2018-01-01') == toDate('2018-01-01');
select toDate('2018-01-01') != toDate('2018-01-01');
select toDate('2018-01-01') < 1; -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
select toDate('2018-01-01') == 1; -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
select toDate('2018-01-01') != 1; -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }