From fb08a96582222ac6881efd2a9dd2d7edc7ec8c16 Mon Sep 17 00:00:00 2001 From: potya Date: Mon, 25 May 2020 14:11:51 +0300 Subject: [PATCH] Add simple test --- .../0_stateless/01269_creare_with_null.reference | 1 + tests/queries/0_stateless/01269_create_with_null.sql | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 tests/queries/0_stateless/01269_creare_with_null.reference create mode 100644 tests/queries/0_stateless/01269_create_with_null.sql diff --git a/tests/queries/0_stateless/01269_creare_with_null.reference b/tests/queries/0_stateless/01269_creare_with_null.reference new file mode 100644 index 00000000000..fa7b52d9ebf --- /dev/null +++ b/tests/queries/0_stateless/01269_creare_with_null.reference @@ -0,0 +1 @@ +Nullable(Int32) Int32 Nullable(Int32) \ No newline at end of file diff --git a/tests/queries/0_stateless/01269_create_with_null.sql b/tests/queries/0_stateless/01269_create_with_null.sql new file mode 100644 index 00000000000..745fc9767a7 --- /dev/null +++ b/tests/queries/0_stateless/01269_create_with_null.sql @@ -0,0 +1,11 @@ +DROP TABLE IF EXISTS data_null; + +CREATE TABLE data_null ( + a INT NULL, + b INT NOT NULL, + C Nullable(INT) +); + +INSERT INTO data_null VALUES (1, 2, 3); + +SELECT toTypeName(*) FROM data_null; \ No newline at end of file