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

11 lines
535 B
SQL

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 }
select toInt64('1');
select toInt64('-1');