From f53826779ab933fe3fc389fbbbc4e2d26427d42a Mon Sep 17 00:00:00 2001 From: "NeZeD [Mac Pro]" Date: Sat, 2 Feb 2019 15:20:18 +0300 Subject: [PATCH] Test `SELECT ... WHERE a NOT BETWEEN b AND c` --- dbms/tests/queries/0_stateless/00834_not_between.reference | 7 +++++++ dbms/tests/queries/0_stateless/00834_not_between.sql | 1 + 2 files changed, 8 insertions(+) diff --git a/dbms/tests/queries/0_stateless/00834_not_between.reference b/dbms/tests/queries/0_stateless/00834_not_between.reference index d00491fd7e5..76b56ea92ee 100644 --- a/dbms/tests/queries/0_stateless/00834_not_between.reference +++ b/dbms/tests/queries/0_stateless/00834_not_between.reference @@ -1 +1,8 @@ 1 +0 +1 +5 +6 +7 +8 +9 diff --git a/dbms/tests/queries/0_stateless/00834_not_between.sql b/dbms/tests/queries/0_stateless/00834_not_between.sql index 82e9f16ce2a..ea9b099e80e 100644 --- a/dbms/tests/queries/0_stateless/00834_not_between.sql +++ b/dbms/tests/queries/0_stateless/00834_not_between.sql @@ -1 +1,2 @@ SELECT 2 NOT BETWEEN 2 + 1 AND 4 - 1; +SELECT number FROM ( SELECT number FROM system.numbers LIMIT 10 ) WHERE number NOT BETWEEN 2 AND 4;