Closed ea-rus closed 3 months ago
This query:
SELECT * FROM table1 WHERE a = 1 AND b NOT IN (1,2)
is parsed with wrong operators priority:
SELECT * FROM table1 WHERE (a = 1 AND b) NOT IN (1,2)
the proper way:
SELECT * FROM table1 WHERE (a = 1) AND (b NOT IN (1,2))
This query:
is parsed with wrong operators priority:
the proper way: