#25499: Distance lookup not possible with a column value as distance
-----------------------------+------------------------------------
Reporter: iambibhas | Owner: claudep
Type: New feature | Status: new
Component: GIS | Version: master
Severity: Normal | Resolution:
Keywords: 1.10 | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+------------------------------------
Comment (by claudep):
Someone can try:
{{{
#!diff
diff --git a/django/contrib/gis/db/backends/oracle/operations.py
b/django/contrib/gis/db/backends/oracle/operations.py
index b443ae0..bb98846 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):
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25499#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.cd624f82a0bc1a625c8d061301f87014%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.