mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Add test
This commit is contained in:
parent
e733c0b96a
commit
6a55ec0390
22
tests/queries/0_stateless/01451_normalize_query.reference
Normal file
22
tests/queries/0_stateless/01451_normalize_query.reference
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
SELECT ?
|
||||||
|
SELECT ?
|
||||||
|
SELECT ?..
|
||||||
|
SELECT ?..,
|
||||||
|
SELECT ?..,
|
||||||
|
SELECT ?..
|
||||||
|
SELECT ?.. WHERE ?
|
||||||
|
SELECT ?.. WHERE ? = ?
|
||||||
|
SELECT ?.. WHERE ? = ? AND (x, y)
|
||||||
|
SELECT ?.. WHERE ? = ? AND (?, y)
|
||||||
|
[?..]
|
||||||
|
[?.., x]
|
||||||
|
SELECT ?.. WHERE ? = ? AND (?, y) LIMIT ?..
|
||||||
|
SELECT ? AS `xyz`
|
||||||
|
SELECT ? AS `xyz1`
|
||||||
|
SELECT ? AS `xyz11`
|
||||||
|
SELECT ? AS `?`
|
||||||
|
SELECT ? AS xyz1
|
||||||
|
SELECT ? AS xyz11
|
||||||
|
SELECT ? xyz11
|
||||||
|
SELECT ?, xyz11
|
||||||
|
SELECT ?..
|
22
tests/queries/0_stateless/01451_normalize_query.sql
Normal file
22
tests/queries/0_stateless/01451_normalize_query.sql
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
SELECT normalizeQuery('SELECT 1');
|
||||||
|
SELECT normalizeQuery('SELECT 1');
|
||||||
|
SELECT normalizeQuery('SELECT 1, 1, 1');
|
||||||
|
SELECT normalizeQuery('SELECT 1, 1, 1, /* Hwllo */');
|
||||||
|
SELECT normalizeQuery('SELECT 1, 1, 1, /* Hello */');
|
||||||
|
SELECT normalizeQuery('SELECT 1, 1, 1, /* Hello */ \'abc\'');
|
||||||
|
SELECT normalizeQuery('SELECT 1, 1, 1, /* Hello */ \'abc\' WHERE 1');
|
||||||
|
SELECT normalizeQuery('SELECT 1, 1, 1, /* Hello */ \'abc\' WHERE 1 = 1');
|
||||||
|
SELECT normalizeQuery('SELECT 1, 1, 1, /* Hello */ \'abc\' WHERE 1 = 1 AND (x, y)');
|
||||||
|
SELECT normalizeQuery('SELECT 1, 1, 1, /* Hello */ \'abc\' WHERE 1 = 1 AND (1, y)');
|
||||||
|
SELECT normalizeQuery('[1, 2, 3]');
|
||||||
|
SELECT normalizeQuery('[1, 2, 3, x]');
|
||||||
|
SELECT normalizeQuery('SELECT 1, 1, 1, /* Hello */ \'abc\' WHERE 1 = 1 AND (1, y) LIMIT 1, 1');
|
||||||
|
SELECT normalizeQuery('SELECT 1 AS `xyz`');
|
||||||
|
SELECT normalizeQuery('SELECT 1 AS `xyz1`');
|
||||||
|
SELECT normalizeQuery('SELECT 1 AS `xyz11`');
|
||||||
|
SELECT normalizeQuery('SELECT 1 AS xyz111');
|
||||||
|
SELECT normalizeQuery('SELECT 1 AS xyz1');
|
||||||
|
SELECT normalizeQuery('SELECT 1 AS xyz11');
|
||||||
|
SELECT normalizeQuery('SELECT 1 xyz11');
|
||||||
|
SELECT normalizeQuery('SELECT 1, xyz11');
|
||||||
|
SELECT normalizeQuery('SELECT 1, ''xyz11''');
|
Loading…
Reference in New Issue
Block a user