branch | stable |
changeset 3766 | 9e5dc4b1ada4 |
parent 3764 | 034aa14b740a |
child 3777 | 3ef8cdb5fb1c |
child 3877 | 7ca53fc72a0a |
child 3949 | 808aef800909 |
--- 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: