mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 17:44:23 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
22 lines
1019 B
SQL
22 lines
1019 B
SQL
DROP TABLE IF EXISTS table_with_cyclic_defaults;
|
|
|
|
CREATE TABLE table_with_cyclic_defaults (a DEFAULT b, b DEFAULT a) ENGINE = Memory; --{serverError 174}
|
|
|
|
CREATE TABLE table_with_cyclic_defaults (a DEFAULT b + 1, b DEFAULT a * a) ENGINE = Memory; --{serverError 174}
|
|
|
|
CREATE TABLE table_with_cyclic_defaults (a DEFAULT b, b DEFAULT toString(c), c DEFAULT concat(a, '1')) ENGINE = Memory; --{serverError 174}
|
|
|
|
CREATE TABLE table_with_cyclic_defaults (a DEFAULT b, b DEFAULT c, c DEFAULT a * b) ENGINE = Memory; --{serverError 174}
|
|
|
|
CREATE TABLE table_with_cyclic_defaults (a String DEFAULT b, b String DEFAULT a) ENGINE = Memory; --{serverError 174}
|
|
|
|
CREATE TABLE table_with_cyclic_defaults (a String) ENGINE = Memory;
|
|
|
|
ALTER TABLE table_with_cyclic_defaults ADD COLUMN c String DEFAULT b, ADD COLUMN b String DEFAULT c; --{serverError 174}
|
|
|
|
ALTER TABLE table_with_cyclic_defaults ADD COLUMN b String DEFAULT a, MODIFY COLUMN a DEFAULT b; --{serverError 174}
|
|
|
|
SELECT 1;
|
|
|
|
DROP TABLE IF EXISTS table_with_cyclic_defaults;
|