ClickHouse/tests/queries/0_stateless/02024_merge_regexp_assert.sql

11 lines
446 B
MySQL
Raw Normal View History

2021-09-28 06:05:36 +00:00
-- Tags: no-parallel
-- (databases can be removed in background, so this test should not be run in parallel)
2021-09-26 23:16:58 +00:00
DROP TABLE IF EXISTS t;
CREATE TABLE t (b UInt8) ENGINE = Memory;
SELECT a FROM merge(REGEXP('.'), '^t$'); -- { serverError 47 }
SELECT a FROM merge(REGEXP('\0'), '^t$'); -- { serverError 47 }
SELECT a FROM merge(REGEXP('\0a'), '^t$'); -- { serverError 47 }
SELECT a FROM merge(REGEXP('\0a'), '^$'); -- { serverError 36 }
DROP TABLE t;