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

Use ILIKE for model.arel_table[:column]#matches #115

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

stympy
Copy link
Contributor

@stympy stympy commented Jan 30, 2024

I needed to dive into Arel for some queries, and I found that #matches was using LIKE instead of ILIKE. This PR is basically a copy/paste from Arel::Visitors::PostgreSQL:

https://github.com/rails/rails/blob/316338acf76c34b529e7d883a916ace798ad8efa/activerecord/lib/arel/visitors/postgresql.rb#L7-L27

@PNixx PNixx merged commit 3affafa into PNixx:master Jan 31, 2024
leboshi added a commit to magellan-ai/clickhouse-activerecord that referenced this pull request Apr 20, 2024
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

Successfully merging this pull request may close these issues.

2 participants