mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
7 lines
250 B
MySQL
7 lines
250 B
MySQL
|
-- Check that "null as default" applies only if type is not Nullable.
|
||
|
|
||
|
SET input_format_null_as_default = 1;
|
||
|
CREATE TEMPORARY TABLE t (x Nullable(String) DEFAULT 'Hello', y String DEFAULT 'World');
|
||
|
INSERT INTO t VALUES (NULL, NULL);
|
||
|
SELECT * FROM t;
|