1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Renamed qn to compiler

This commit is contained in:
Josh Smeaton
2014-11-16 12:56:42 +11:00
committed by Simon Charette
parent 05e0e4674c
commit f61256da3a
23 changed files with 240 additions and 237 deletions

View File

@@ -186,7 +186,7 @@ class OracleOperations(DatabaseOperations, BaseSpatialOperations):
return [dist_param]
def get_geom_placeholder(self, f, value, qn):
def get_geom_placeholder(self, f, value, compiler):
"""
Provides a proper substitution value for Geometries that are not in the
SRID of the field. Specifically, this routine will substitute in the
@@ -205,7 +205,7 @@ class OracleOperations(DatabaseOperations, BaseSpatialOperations):
placeholder = '%s'
# No geometry value used for F expression, substitute in
# the column name instead.
sql, _ = qn.compile(value)
sql, _ = compiler.compile(value)
return placeholder % sql
else:
if transform_value(value, f.srid):