# HG changeset patch # User Sylvain Thénault # Date 1244551620 -7200 # Node ID 173c646981a7d63a6b05f69461372d76de29fe0f # Parent 8008e8812d76945812242918269fd5eb9baed744 fix missing from close when using a var map diff -r 8008e8812d76 -r 173c646981a7 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 ''