{{{
def test_round_trip(self):
g = City.objects.values_list(models.Value(Point(-87.650175,
41.850385), models.PointField()), flat=True)[0]
self.assertEqual(g.wkt, 'POINT (-87.650175 41.850385)')
}}}
{{{
Traceback (most recent call last):
File "/home/jenkins/workspace/pull-requests-
oracle/database/oragis18/label/bionic-
pr/python/python3.8/tests/gis_tests/geoapp/tests.py", line 228, in
test_round_trip
self.assertEqual(g.wkt, 'POINT (-87.650175 41.850385)')
AssertionError: 'POINT (-87.65017499999999 41.850385)' != 'POINT
(-87.650175 41.850385)'
- POINT (-87.65017499999999 41.850385)
? ^^^^^^^^^
+ POINT (-87.650175 41.850385)
? ^
}}}
I'm not sure if we should fix it, since it might be treated like Oracle
bug, but it looks like it can be fixed by using WKB instead of WKT in
queries on Oracle.
--
Ticket URL: <https://code.djangoproject.com/ticket/31015>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => needsinfo
Comment:
Thanks for this report. I would like to check how it looks like on Oracle
19 (but I have some issues with this db), so let's close it for now as
"needsinfo".
--
Ticket URL: <https://code.djangoproject.com/ticket/31015#comment:1>
* resolution: needsinfo => invalid
Comment:
I confirmed the same behavior on Oracle 19c, however I think it's a bug in
Oracle. Closing as invalid unless someone can prove it's Django's fault or
there is anything we can improve in Django itself.
--
Ticket URL: <https://code.djangoproject.com/ticket/31015#comment:2>