Skip to content

How to use LIKE instead ILIKE on PostgreSQL? #699

Description

@glaucocustodio

Hi folks, first I would like to thank you all for the great work!

I need to use LIKE instead ILIKE (for performance reasons) when using cont predicate. I've checked https://github.com/rails/arel/blob/master/lib/arel/predications.rb#L121 and I know that we can turn the search case sensitive just by passing case_sensitive = true to the matches method.

I am creating a new predicate and the add_predicate method has the option arel_predicate that seems to only accept a string.

Is that possible to pass case_sensitive = true when using the matches predicate?

I am using arel (6.0.3).

Thank in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions