Added test

This commit is contained in:
Maksim Kita 2021-02-15 22:21:37 +03:00
parent 3f6050cee9
commit d6b53d2b02
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,2 @@
(0,1)
(0,1)

View File

@ -0,0 +1,12 @@
DROP TABLE IF EXISTS test_tuple;
CREATE TABLE test_tuple (value Tuple(UInt8, UInt8)) ENGINE=TinyLog;
SET input_format_null_as_default = 1;
INSERT INTO test_tuple VALUES ((NULL, 1));
SELECT * FROM test_tuple;
SET input_format_null_as_default = 0;
INSERT INTO test_tuple VALUES ((NULL, 2)); -- { clientError 53 }
SELECT * FROM test_tuple;
DROP TABLE test_tuple;