ClickHouse/tests/queries/0_stateless/01596_null_as_default_nullable.sql

7 lines
250 B
MySQL
Raw Normal View History

2020-11-29 10:56:14 +00:00
-- 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;