Editorial: Is this a real feature?
Can we code for it and depend on it? I think so.
It’s there in the source code. There are a few sprinkled references by knowldgeable people. But on the other hand there’s nothing in the Arel docs or source code which specify this behavior. I.e. something along the lines of “Arel.match will perform a case-insensitive query, adapting for the particular database in use.” That’d be very reassuring. But in fact, a search for the word case in the comments yields zero results.
That is a nice find! I once submitted a documentation-only pull
request to paperclip to promote a feature from undocumented to
documented. :-)
In the MySQL case whether the query is case sensitive or not actually
depends on the column's collation value.
--
You received this message because you are subscribed to the Google Groups "pdxruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pdxruby+u...@googlegroups.com.
To post to this group, send email to pdx...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pdxruby/d7b0f506-e87a-4454-86a9-1fcba6861ea3%40googlegroups.com.