From 26f91c4a9610bc3cb80ee39d9174465a53b6d8e2 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 8 Jul 2019 20:05:38 +0300 Subject: [PATCH] Added a test --- .../0_stateless/00966_invalid_json_must_not_parse.reference | 1 + .../queries/0_stateless/00966_invalid_json_must_not_parse.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/00966_invalid_json_must_not_parse.reference create mode 100644 dbms/tests/queries/0_stateless/00966_invalid_json_must_not_parse.sql diff --git a/dbms/tests/queries/0_stateless/00966_invalid_json_must_not_parse.reference b/dbms/tests/queries/0_stateless/00966_invalid_json_must_not_parse.reference new file mode 100644 index 00000000000..573541ac970 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00966_invalid_json_must_not_parse.reference @@ -0,0 +1 @@ +0 diff --git a/dbms/tests/queries/0_stateless/00966_invalid_json_must_not_parse.sql b/dbms/tests/queries/0_stateless/00966_invalid_json_must_not_parse.sql new file mode 100644 index 00000000000..ee6243d250f --- /dev/null +++ b/dbms/tests/queries/0_stateless/00966_invalid_json_must_not_parse.sql @@ -0,0 +1 @@ +SELECT JSONLength(unhex('5B30000E06D7AA5D'));