2020-03-11 13:36:33 +00:00
|
|
|
DROP TABLE IF EXISTS table_with_cyclic_defaults;
|
|
|
|
|
2024-05-30 12:27:25 +00:00
|
|
|
CREATE TABLE table_with_cyclic_defaults (a DEFAULT b, b DEFAULT a) ENGINE = Memory; --{serverError CYCLIC_ALIASES}
|
2020-03-11 13:36:33 +00:00
|
|
|
|
2024-05-30 12:27:25 +00:00
|
|
|
CREATE TABLE table_with_cyclic_defaults (a DEFAULT b + 1, b DEFAULT a * a) ENGINE = Memory; --{serverError CYCLIC_ALIASES}
|
2020-03-11 13:36:33 +00:00
|
|
|
|
2024-05-30 12:27:25 +00:00
|
|
|
CREATE TABLE table_with_cyclic_defaults (a DEFAULT b, b DEFAULT toString(c), c DEFAULT concat(a, '1')) ENGINE = Memory; --{serverError CYCLIC_ALIASES}
|
2020-03-11 13:36:33 +00:00
|
|
|
|
2024-05-30 12:27:25 +00:00
|
|
|
CREATE TABLE table_with_cyclic_defaults (a DEFAULT b, b DEFAULT c, c DEFAULT a * b) ENGINE = Memory; --{serverError CYCLIC_ALIASES}
|
2020-03-11 13:36:33 +00:00
|
|
|
|
2024-05-30 12:27:25 +00:00
|
|
|
CREATE TABLE table_with_cyclic_defaults (a String DEFAULT b, b String DEFAULT a) ENGINE = Memory; --{serverError CYCLIC_ALIASES}
|
2020-03-11 13:36:33 +00:00
|
|
|
|
2020-03-11 13:39:34 +00:00
|
|
|
CREATE TABLE table_with_cyclic_defaults (a String) ENGINE = Memory;
|
|
|
|
|
2024-05-30 12:27:25 +00:00
|
|
|
ALTER TABLE table_with_cyclic_defaults ADD COLUMN c String DEFAULT b, ADD COLUMN b String DEFAULT c; --{serverError CYCLIC_ALIASES}
|
2020-03-11 13:39:34 +00:00
|
|
|
|
2024-05-30 12:27:25 +00:00
|
|
|
ALTER TABLE table_with_cyclic_defaults ADD COLUMN b String DEFAULT a, MODIFY COLUMN a DEFAULT b; --{serverError CYCLIC_ALIASES}
|
2020-03-11 13:39:34 +00:00
|
|
|
|
2020-03-11 13:36:33 +00:00
|
|
|
SELECT 1;
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS table_with_cyclic_defaults;
|