This commit is contained in:
kssenii 2021-04-23 04:16:36 +00:00
parent 459612c895
commit 55d2627a27
2 changed files with 5 additions and 5 deletions

View File

@ -1,9 +1,9 @@
WORLD
HELLO
WORLD
WORLD
HELLO
WORLD
WORLD
HELLO PEOPLE
WORLD PEOPLE

View File

@ -2,14 +2,14 @@ DROP TABLE IF EXISTS test_null_as_default;
CREATE TABLE test_null_as_default (s String DEFAULT 'WORLD') ENGINE = Memory;
INSERT INTO test_null_as_default SELECT 'HELLO' UNION ALL SELECT NULL;
SELECT * FROM test_null_as_default;
SELECT * FROM test_null_as_default ORDER BY s;
SELECT '';
INSERT INTO test_null_as_default SELECT NULL;
SELECT * FROM test_null_as_default;
SELECT * FROM test_null_as_default ORDER BY s;
SELECT '';
REPLACE TABLE test_null_as_default (s String DEFAULT 'WORLD', ss String DEFAULT 'PEOPLE') ENGINE = Memory;
INSERT INTO test_null_as_default(s) SELECT 'HELLO' UNION ALL SELECT NULL;
SELECT * FROM test_null_as_default;
SELECT * FROM test_null_as_default ORDER BY s;