forbid collapsing of left-join queries into implicit inner-joins

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/catalog_join@42349 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e4177292
......@@ -190,3 +190,13 @@ class LeftJoin(InnerJoin):
"""Definition of a left-join as a FROM expression"""
JOIN_TYPE = "LEFT JOIN"
def _extendJoinConditionQueryList(self, query_list):
""" The condition from a left-join cannot be meaningfully
extracted to be used in an implicit Inner Join, as is done when a
query contains a related key that is not formatted to separate the
join conditions for each related table."""
raise RuntimeError("Attempted to collapse table definition for implicit "
"inner join, but this table definition contains a Left "
"Join: %r" % self)
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