mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Client --testmode cannot be used to catch exceptions thrown from query parser #2840
This commit is contained in:
parent
41ec796a67
commit
40a0551d85
@ -1,23 +0,0 @@
|
||||
SET send_logs_level = 'none';
|
||||
|
||||
DROP TABLE IF EXISTS test.test;
|
||||
|
||||
CREATE TABLE test.test(val Int64) engine = Memory;
|
||||
|
||||
INSERT INTO test.test VALUES (1);
|
||||
INSERT INTO test.test VALUES (2);
|
||||
INSERT INTO test.test VALUES (3);
|
||||
INSERT INTO test.test VALUES (4);
|
||||
INSERT INTO test.test VALUES (5);
|
||||
INSERT INTO test.test VALUES (6);
|
||||
INSERT INTO test.test VALUES (7);
|
||||
INSERT INTO test.test VALUES (8);
|
||||
INSERT INTO test.test VALUES (9);
|
||||
|
||||
SELECT TOP 2 * FROM test.test ORDER BY val;
|
||||
SELECT TOP (2) * FROM test.test ORDER BY val;
|
||||
SELECT * FROM test.test ORDER BY val LIMIT 2 OFFSET 2;
|
||||
SELECT TOP 2 * FROM test.test ORDER BY val LIMIT 2; -- { clientError 406 }
|
||||
SELECT * FROM test.test ORDER BY val LIMIT 2,3 OFFSET 2; -- { clientError 62 }
|
||||
|
||||
DROP TABLE test.test;
|
Loading…
Reference in New Issue
Block a user