Added a test just in case

This commit is contained in:
Alexey Milovidov 2020-11-29 13:56:14 +03:00
parent 33b38a9f7b
commit d4721fea69
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1 @@
\N World

View File

@ -0,0 +1,6 @@
-- 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;