On Thu, Apr 7, 2011 at 6:21 AM, hendra kusuma <[email protected]> wrote:
> Dear all,
>
> I need to filter string case insensitive (used postgresql)
> DB[:table].filter(:field.like('str%')) do filter case sensitively
>

DB[:table].filter(:field.ilike('str%'))

"ilike" instead of "like"

Michael
-- 
http://codeconnoisseur.org

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to