#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
-----------------------------+------------------------------------
Changes (by timgraham):
* status: closed => new
* cc: jtiai (added)
* keywords: => 1.10
* has_patch: 1 => 0
* resolution: fixed =>
* stage: Ready for checkin => Accepted
Comment:
This needs to be addressed on Oracle GIS.
`gis_tests.distapp.tests.DistanceTest.test_distance_lookups_with_expression_rhs`
fails like so:
{{{
Traceback (most recent call last):
File "/mnt/jenkinsdata/workspace/pull-requests-
oracle/database/oragis11/python/python3.5/django/test/testcases.py", line
1068, in skip_wrapper
return test_func(*args, **kwargs)
File "/mnt/jenkinsdata/workspace/pull-requests-
oracle/database/oragis11/python/python3.5/tests/gis_tests/distapp/tests.py",
line 332, in test_distance_lookups_with_expression_rhs
self.get_names(qs),
File "/mnt/jenkinsdata/workspace/pull-requests-
oracle/database/oragis11/python/python3.5/tests/gis_tests/distapp/tests.py",
line 34, in get_names
cities = [c.name for c in qs]
File "/mnt/jenkinsdata/workspace/pull-requests-
oracle/database/oragis11/python/python3.5/django/db/models/query.py", line
258, in __iter__
self._fetch_all()
File "/mnt/jenkinsdata/workspace/pull-requests-
oracle/database/oragis11/python/python3.5/django/db/models/query.py", line
1074, in _fetch_all
self._result_cache = list(self.iterator())
File "/mnt/jenkinsdata/workspace/pull-requests-
oracle/database/oragis11/python/python3.5/django/db/models/query.py", line
52, in __iter__
results = compiler.execute_sql()
File "/mnt/jenkinsdata/workspace/pull-requests-
oracle/database/oragis11/python/python3.5/django/db/models/sql/compiler.py",
line 839, in execute_sql
cursor.execute(sql, params)
File "/mnt/jenkinsdata/workspace/pull-requests-
oracle/database/oragis11/python/python3.5/django/db/backends/utils.py",
line 64, in execute
return self.cursor.execute(sql, params)
File "/mnt/jenkinsdata/workspace/pull-requests-
oracle/database/oragis11/python/python3.5/django/db/backends/oracle/base.py",
line 477, in execute
query, params = self._fix_for_params(query, params)
File "/mnt/jenkinsdata/workspace/pull-requests-
oracle/database/oragis11/python/python3.5/django/db/backends/oracle/base.py",
line 473, in _fix_for_params
query = convert_unicode(query % tuple(args), self.charset)
TypeError: not enough arguments for format string
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25499#comment:6>
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.4223c7d7f55ee8adda40043923838431%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.