Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

icontains lookup doesn't work with dictionary params #142

Open
yushkovskiy opened this issue Dec 19, 2015 · 0 comments
Open

icontains lookup doesn't work with dictionary params #142

yushkovskiy opened this issue Dec 19, 2015 · 0 comments

Comments

@yushkovskiy
Copy link

ProgrammingError: operator does not exist: text -> unknown
LINE 1: ...act" WHERE (UPPER("app_model"."hstorefield"::text)->'custom_...
^

I believe that problem is in replacement of '::text' to '::hstore'. The condition
https://github.com/djangonauts/django-hstore/blob/master/django_hstore/lookups.py#L82
checks that lhs ends with '::text' cast, but in case of icontains it ends with '::text)' (at least with django 1.7)

python version: 2.7.6
django version: 1.7.10
django-hstore version: 1.4.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant