rset.py
branchstable
changeset 8085 51929d531aff
parent 8048 10a0f73d834d
child 8087 dc788369d35f
equal deleted inserted replaced
8081:e8091b415ad8 8085:51929d531aff
   693             rootvar = term.variable
   693             rootvar = term.variable
   694         except AttributeError:
   694         except AttributeError:
   695             continue
   695             continue
   696         if rootvar.name == rootmainvar.name:
   696         if rootvar.name == rootmainvar.name:
   697             continue
   697             continue
   698         if select is not rootselect:
   698         if select is not rootselect and isinstance(rootvar, nodes.ColumnAlias):
   699             term = select.selection[root.subquery_selection_index(select, i)]
   699             term = select.selection[root.subquery_selection_index(select, i)]
   700         var = _get_variable(term)
   700         var = _get_variable(term)
   701         if var is None:
   701         if var is None:
   702             continue
   702             continue
   703         for ref in var.references():
   703         for ref in var.references():