mirror of
https://github.com/django/django.git
synced 2025-09-28 21:14:55 +00:00
Fixed #21825 -- gis compiler uses self instead of qn for as_sql()
This commit is contained in:
parent
994c842bc9
commit
1f58834ac6
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ class GeoSQLCompiler(compiler.SQLCompiler):
|
||||||
This routine is overridden from Query to handle customized selection of
|
This routine is overridden from Query to handle customized selection of
|
||||||
geometry columns.
|
geometry columns.
|
||||||
"""
|
"""
|
||||||
qn = self.quote_name_unless_alias
|
qn = self
|
||||||
qn2 = self.connection.ops.quote_name
|
qn2 = self.connection.ops.quote_name
|
||||||
result = ['(%s) AS %s' % (self.get_extra_select_format(alias) % col[0], qn2(alias))
|
result = ['(%s) AS %s' % (self.get_extra_select_format(alias) % col[0], qn2(alias))
|
||||||
for alias, col in six.iteritems(self.query.extra_select)]
|
for alias, col in six.iteritems(self.query.extra_select)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue