ClickHouse/tests/queries/0_stateless/01888_read_int_safe.sql

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

11 lines
535 B
MySQL
Raw Normal View History

select toInt64('--1'); -- { serverError CANNOT_PARSE_NUMBER }
select toInt64('+-1'); -- { serverError CANNOT_PARSE_NUMBER }
select toInt64('++1'); -- { serverError CANNOT_PARSE_NUMBER }
select toInt64('++'); -- { serverError CANNOT_PARSE_NUMBER }
select toInt64('+'); -- { serverError CANNOT_PARSE_NUMBER }
select toInt64('1+1'); -- { serverError CANNOT_PARSE_TEXT }
select toInt64('1-1'); -- { serverError CANNOT_PARSE_TEXT }
select toInt64(''); -- { serverError ATTEMPT_TO_READ_AFTER_EOF }
2021-05-25 02:29:47 +00:00
select toInt64('1');
select toInt64('-1');