ClickHouse/dbms/tests/queries/0_stateless/00970_substring_arg_validation.sql
2019-11-11 11:55:07 +03:00

4 lines
222 B
SQL

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