mirror of
https://github.com/django/django.git
synced 2025-12-23 09:19:27 +00:00
Renamed qn to compiler
This commit is contained in:
parent
05e0e4674c
commit
f61256da3a
23 changed files with 240 additions and 237 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue