#25666: ArrayField exact querying doesn't work with CharField
----------------------------------+-----------------
Reporter: ecederstrand | Owner:
Type: Bug | Status: new
Component: contrib.postgres | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+-----------------
This is a variation of https://code.djangoproject.com/ticket/22907, except
with `=` instead of `__contains`. When trying to make an exact match on a
char ArrayField:
{{{#!python
CharArrayModel.objects.filter(field=['text'])
}}}
I get:
{{{
ProgrammingError: operator does not exist: character varying[] = text[]
LINE 1: ...el" WHERE "postgres_tests_chararraymodel"."field" = ARRAY['...
^
HINT: No operator matches the given name and argument type(s). You might
need to add explicit type casts.
}}}
The same happens if I use `__exact`.
--
Ticket URL: <https://code.djangoproject.com/ticket/25666>
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/055.35e5c5f718c87b8689244200d5ccaf8f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.