From 08c5c45f2b2b25ae74fb56e47be13c79b3a189e2 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 10 Feb 2019 23:18:11 +0300 Subject: [PATCH] Added a test for operator priority #4228 --- .../queries/0_stateless/00834_not_between.reference | 10 ++++++++++ dbms/tests/queries/0_stateless/00834_not_between.sql | 2 ++ 2 files changed, 12 insertions(+) diff --git a/dbms/tests/queries/0_stateless/00834_not_between.reference b/dbms/tests/queries/0_stateless/00834_not_between.reference index 76b56ea92ee..5a758d0e67c 100644 --- a/dbms/tests/queries/0_stateless/00834_not_between.reference +++ b/dbms/tests/queries/0_stateless/00834_not_between.reference @@ -6,3 +6,13 @@ 7 8 9 +0 0 +0 0 +0 0 +0 0 +1 1 +1 1 +1 1 +0 0 +0 0 +0 0 diff --git a/dbms/tests/queries/0_stateless/00834_not_between.sql b/dbms/tests/queries/0_stateless/00834_not_between.sql index ea9b099e80e..45709c7a1b7 100644 --- a/dbms/tests/queries/0_stateless/00834_not_between.sql +++ b/dbms/tests/queries/0_stateless/00834_not_between.sql @@ -1,2 +1,4 @@ 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; + +SELECT number BETWEEN 4 AND 6, NOT number NOT BETWEEN 4 AND 6 AND 1 FROM numbers(10);