Added a test for operator priority #4228

This commit is contained in:
Alexey Milovidov 2019-02-10 23:18:11 +03:00
parent 69b84380f2
commit 08c5c45f2b
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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);