We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I do a search on a list of records, I get:
PG::Error: ERROR: operator does not exist: integer ~~* unknown LINE 1: ...ntent ILIKE '%great%') OR (comments.user_id ILIKE '%gr...
because Postgres is picky about using ILIKE on integers (user_id).
Works in sqlite of course.
The reason user_id is in the search field is my fault, because I accidentally added field :user_id instead of :user in the RailsAdmin config block.
A fix might be to cast anything passed to ILIKE to a string to avoid crashes or use the type definition from the DB adaptor directly. I'm not sure.
NOTE: I'm behind HEAD somewhat, so I don't know if this still applies.
Let me know if you need anything else.
The text was updated successfully, but these errors were encountered:
mshibuya
No branches or pull requests
When I do a search on a list of records, I get:
because Postgres is picky about using ILIKE on integers (user_id).
Works in sqlite of course.
The reason user_id is in the search field is my fault, because I accidentally
added field :user_id instead of :user in the RailsAdmin config block.
A fix might be to cast anything passed to ILIKE to a string to avoid crashes or
use the type definition from the DB adaptor directly. I'm not sure.
NOTE: I'm behind HEAD somewhat, so I don't know if this still applies.
Let me know if you need anything else.
The text was updated successfully, but these errors were encountered: