mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-20 05:05:38 +00:00
14 lines
414 B
SQL
14 lines
414 B
SQL
DROP TABLE IF EXISTS tab;
|
|
|
|
CREATE TABLE tab (haystack String, pattern String) engine = MergeTree() ORDER BY haystack;
|
|
|
|
INSERT INTO tab VALUES ('haystack', 'pattern\\');
|
|
|
|
-- const pattern
|
|
SELECT haystack LIKE 'pattern\\' from tab; -- { serverError CANNOT_PARSE_ESCAPE_SEQUENCE }
|
|
|
|
-- non-const pattern
|
|
SELECT haystack LIKE pattern from tab; -- { serverError CANNOT_PARSE_ESCAPE_SEQUENCE }
|
|
|
|
DROP TABLE IF EXISTS tab;
|