From 00db71d452d04e417bcc2a88757af1c9e22b8e74 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Fri, 9 Oct 2015 14:08:08 -0400 Subject: [PATCH] Refs #25499 -- Fixed expressions in distance lookups on Oracle. --- django/contrib/gis/db/backends/oracle/operations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/gis/db/backends/oracle/operations.py b/django/contrib/gis/db/backends/oracle/operations.py index b443ae0f46..bb98846fc2 100644 --- a/django/contrib/gis/db/backends/oracle/operations.py +++ b/django/contrib/gis/db/backends/oracle/operations.py @@ -28,7 +28,7 @@ class SDOOperator(SpatialOperator): class SDODistance(SpatialOperator): - sql_template = "SDO_GEOM.SDO_DISTANCE(%%(lhs)s, %%(rhs)s, %s) %%(op)s %%%%s" % DEFAULT_TOLERANCE + sql_template = "SDO_GEOM.SDO_DISTANCE(%%(lhs)s, %%(rhs)s, %s) %%(op)s %%(value)s" % DEFAULT_TOLERANCE class SDODWithin(SpatialOperator):