# HG changeset patch # User Aurelien Campeas # Date 1256116918 -7200 # Node ID 9e5dc4b1ada4609d6d4ec0be4a0eb5044d06c0b0 # Parent 769dc0107f31073e1f81bd35e3a6ba51d0ef9b2d work around a pb. with subquery_selection_index diff -r 769dc0107f31 -r 9e5dc4b1ada4 rset.py --- a/rset.py Wed Oct 21 11:19:54 2009 +0200 +++ b/rset.py Wed Oct 21 11:21:58 2009 +0200 @@ -505,6 +505,9 @@ # UNION query, find the subquery from which this entity has been found select = rqlst.locate_subquery(locate_query_col, etype, self.args)[0] col = rqlst.subquery_selection_index(select, col) + if col is None: + # XXX unexpected, should fix subquery_selection_index ? + return None, None try: myvar = select.selection[col].variable except AttributeError: