fix missing from close when using a var map stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 09 Jun 2009 14:47:00 +0200
branchstable
changeset 2073 173c646981a7
parent 2072 8008e8812d76
child 2074 9e268cb6202e
fix missing from close when using a var map
server/sources/rql2sql.py
--- a/server/sources/rql2sql.py	Tue Jun 09 14:46:39 2009 +0200
+++ b/server/sources/rql2sql.py	Tue Jun 09 14:47:00 2009 +0200
@@ -827,6 +827,9 @@
                 contextrels[var.name] = attrvars[var.name]
             except KeyError:
                 attrvars[var.name] = relation
+            if var.name in self._varmap:
+                # ensure table is added
+                self._var_info(var.variable)
         if not contextrels:
             relation.children[1].accept(self, contextrels)
             return ''