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,7 +252,8 @@ class RQLRewriter(object): ...@@ -252,7 +252,8 @@ class RQLRewriter(object):
self.insert_pending() self.insert_pending()
self._insert_scope = None self._insert_scope = None
return return
new = n.Exists(new) if not isinstance(new, (n.Exists, n.Not)):
new = n.Exists(new)
if parent is None: if parent is None:
insert_scope.add_restriction(new) insert_scope.add_restriction(new)
else: else:
......
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