ClickHouse/tests/queries/0_stateless/00260_like_and_curly_braces.sql

35 lines
2.0 KiB
MySQL
Raw Normal View History

2015-10-29 00:55:27 +00:00
SELECT 'a}a' AS x, x LIKE (concat('%', x, '%') AS pat), materialize(x) LIKE pat;
SELECT 'a}a' AS x, x LIKE (concat('%', x) AS pat), materialize(x) LIKE pat;
SELECT 'a}a' AS x, x LIKE (concat(x, '%') AS pat), materialize(x) LIKE pat;
SELECT 'a}a' AS x, x LIKE (x AS pat), materialize(x) LIKE pat;
SELECT 'a{a' AS x, x LIKE (concat('%', x, '%') AS pat), materialize(x) LIKE pat;
SELECT 'a{a' AS x, x LIKE (concat('%', x) AS pat), materialize(x) LIKE pat;
SELECT 'a{a' AS x, x LIKE (concat(x, '%') AS pat), materialize(x) LIKE pat;
SELECT 'a{a' AS x, x LIKE (x AS pat), materialize(x) LIKE pat;
SELECT '{a' AS x, x LIKE (concat('%', x, '%') AS pat), materialize(x) LIKE pat;
SELECT '{a' AS x, x LIKE (concat('%', x) AS pat), materialize(x) LIKE pat;
SELECT '{a' AS x, x LIKE (concat(x, '%') AS pat), materialize(x) LIKE pat;
SELECT '{a' AS x, x LIKE (x AS pat), materialize(x) LIKE pat;
SELECT 'a{' AS x, x LIKE (concat('%', x, '%') AS pat), materialize(x) LIKE pat;
SELECT 'a{' AS x, x LIKE (concat('%', x) AS pat), materialize(x) LIKE pat;
SELECT 'a{' AS x, x LIKE (concat(x, '%') AS pat), materialize(x) LIKE pat;
SELECT 'a{' AS x, x LIKE (x AS pat), materialize(x) LIKE pat;
SELECT 'a}' AS x, x LIKE (concat('%', x, '%') AS pat), materialize(x) LIKE pat;
SELECT 'a}' AS x, x LIKE (concat('%', x) AS pat), materialize(x) LIKE pat;
SELECT 'a}' AS x, x LIKE (concat(x, '%') AS pat), materialize(x) LIKE pat;
SELECT 'a}' AS x, x LIKE (x AS pat), materialize(x) LIKE pat;
SELECT '}a' AS x, x LIKE (concat('%', x, '%') AS pat), materialize(x) LIKE pat;
SELECT '}a' AS x, x LIKE (concat('%', x) AS pat), materialize(x) LIKE pat;
SELECT '}a' AS x, x LIKE (concat(x, '%') AS pat), materialize(x) LIKE pat;
SELECT '}a' AS x, x LIKE (x AS pat), materialize(x) LIKE pat;
SELECT '{a}' AS x, x LIKE (concat('%', x, '%') AS pat), materialize(x) LIKE pat;
SELECT '{a}' AS x, x LIKE (concat('%', x) AS pat), materialize(x) LIKE pat;
SELECT '{a}' AS x, x LIKE (concat(x, '%') AS pat), materialize(x) LIKE pat;
SELECT '{a}' AS x, x LIKE (x AS pat), materialize(x) LIKE pat;