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:
committed by
Simon Charette
parent
05e0e4674c
commit
f61256da3a
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user