ClickHouse/dbms/tests/queries/0_stateless/00970_substring_arg_validation.sql

4 lines
244 B
MySQL
Raw Normal View History

2019-07-10 10:19:14 +00:00
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 }