ClickHouse/tests/queries/0_stateless/01596_null_as_default_nullable.sql
2020-11-29 13:56:14 +03:00

7 lines
250 B
SQL

-- 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;