mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Merge remote-tracking branch 'mine/reject_invalid_mutation_queries' into reject_invalid_mutation_queries
This commit is contained in:
commit
b041199350
@ -3,11 +3,11 @@ DROP TABLE IF EXISTS t2;
|
||||
|
||||
CREATE TABLE t (x int) ENGINE = MergeTree() ORDER BY ();
|
||||
|
||||
DELETE FROM t WHERE y in (SELECT y FROM t); -- { serverError 47 }
|
||||
DELETE FROM t WHERE x in (SELECT y FROM t); -- { serverError 47 }
|
||||
DELETE FROM t WHERE x IN (SELECT * FROM t2); -- { serverError 60 }
|
||||
ALTER TABLE t DELETE WHERE x in (SELECT y FROM t); -- { serverError 47 }
|
||||
ALTER TABLE t UPDATE x = 1 WHERE x IN (SELECT y FROM t); -- { serverError 47 }
|
||||
DELETE FROM t WHERE y in (SELECT x FROM t); -- { serverError UNKNOWN_IDENTIFIER }
|
||||
DELETE FROM t WHERE x in (SELECT y FROM t); -- { serverError UNKNOWN_IDENTIFIER }
|
||||
DELETE FROM t WHERE x IN (SELECT * FROM t2); -- { serverError UNKNOWN_TABLE }
|
||||
ALTER TABLE t DELETE WHERE x in (SELECT y FROM t); -- { serverError UNKNOWN_IDENTIFIER }
|
||||
ALTER TABLE t UPDATE x = 1 WHERE x IN (SELECT y FROM t); -- { serverError UNKNOWN_IDENTIFIER }
|
||||
|
||||
DELETE FROM t WHERE x IN (SELECT foo FROM bar) SETTINGS validate_mutation_query = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user