mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 08:52:06 +00:00
14 lines
362 B
MySQL
14 lines
362 B
MySQL
|
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 25 }
|
||
|
|
||
|
-- non-const pattern
|
||
|
SELECT haystack LIKE pattern from tab; -- { serverError 25 }
|
||
|
|
||
|
DROP TABLE IF EXISTS tab;
|