#14060: `PostGISAdapter` needs to properly cast input for comparisons on
geography
columns.
---------------------------+------------------------------------------------
Reporter: jbronn | Owner: nobody
Status: new | Milestone: 1.3
Component: Uncategorized | Version: 1.2
Keywords: | Stage: Unreviewed
Has_patch: 0 |
---------------------------+------------------------------------------------
When performing `exact` queries on geography columns, the input is not
casted to the geography type, leading to an error:
{{{
DatabaseError: operator does not exist: geography ~= geometry
LINE 1: ... FROM "geogapp_city" WHERE "geogapp_city"."point" ~= ST_Geom...
^
HINT: No operator matches the given name and argument type(s). You might
need to add explicit type casts.
}}}
Attached is an initial patch for a test case demonstrating the problem.
--
Ticket URL: <http://code.djangoproject.com/ticket/14060>
Django <http://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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.