ClickHouse/dbms/tests/queries/0_stateless/00970_substring_arg_validation.sql
Alexandr Krasheninnikov eb78c9f084 Batch of tests
2019-07-10 13:19:14 +03:00

4 lines
244 B
SQL

SELECT substring('hello', []); -- { serverError 43 }
SELECT substring('hello', 1, []); -- { serverError 43 }
SELECT substring(materialize('hello'), -1, -1); -- { serverError 69 }
SELECT substring(materialize('hello'), 0); -- { serverError 135 }