ClickHouse/tests/queries/0_stateless/02816_has_token_empty.sql
2023-08-04 13:03:15 -07:00

12 lines
587 B
SQL

SELECT hasTokenCaseInsensitive('K(G', ''); -- { serverError BAD_ARGUMENTS }
SELECT hasTokenCaseInsensitive('Hello', ''); -- { serverError BAD_ARGUMENTS }
SELECT hasTokenCaseInsensitive('', ''); -- { serverError BAD_ARGUMENTS }
SELECT hasTokenCaseInsensitive('', 'Hello');
SELECT hasTokenCaseInsensitiveOrNull('Hello', '');
SELECT hasTokenCaseInsensitiveOrNull('', '');
SELECT hasToken('Hello', ''); -- { serverError BAD_ARGUMENTS }
SELECT hasToken('', 'Hello');
SELECT hasToken('', ''); -- { serverError BAD_ARGUMENTS }
SELECT hasTokenOrNull('', '');
SELECT hasTokenOrNull('Hello', '');