Ticket #12479: as_sql.diff
File as_sql.diff, 644 bytes (added by , 15 years ago) |
---|
-
django/contrib/gis/db/models/sql/compiler.py
diff --git a/django/contrib/gis/db/models/sql/compiler.py b/django/contrib/gis/db/models/sql/compiler.py index a94093f..6a90a7b 100644
a b class GeoSQLCompiler(compiler.SQLCompiler): 55 55 aliases.add(r) 56 56 col_aliases.add(col[1]) 57 57 else: 58 result.append(col.as_sql(qn=qn ))58 result.append(col.as_sql(qn=qn, connection=self.connection)) 59 59 60 60 if hasattr(col, 'alias'): 61 61 aliases.add(col.alias)