Commit 122d9f68 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[rql rewriter] don't add unnecessary (potentially buggy) exists

--HG--
branch : stable
parent 5406c963ee81
......@@ -252,6 +252,7 @@ class RQLRewriter(object):
self.insert_pending()
self._insert_scope = None
return
if not isinstance(new, (n.Exists, n.Not)):
new = n.Exists(new)
if parent is None:
insert_scope.add_restriction(new)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment