I'm pretty sure you'd have to write that sql yourself:
repository(:default).adapter.select('select * from table_name where
BINARY name like "Code"')
On Apr 26, 11:32 am, Chris <[email protected]> wrote:
> Does anyone know how to add the attribute BINARY to a datamapper
> query?
>
> This is the sql I want datamapper to produce, but I can't find it in
> any
> of the docs:
>
> select * from table_name where BINARY name like "Code"
>
> Sample datamapper query:
> ClassName.all({:name => "Code"})
>
> Right now I am getting all records that match "code" and "Code". I
> don't
> want to change the column to a binary column.
>
> Thanks,
> Chris
--
You received this message because you are subscribed to the Google Groups
"DataMapper" 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/datamapper?hl=en.