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

4 lines
222 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 }
2019-11-11 08:55:07 +00:00
SELECT substring(materialize('hello'), -1, -1);
2019-07-10 10:19:14 +00:00
SELECT substring(materialize('hello'), 0); -- { serverError 135 }