Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #3518

Set BINARY attribute for a datamapper query?

From Chris Gunnels <rfsllc@gmail.com>
Newsgroups comp.lang.ruby
Subject Set BINARY attribute for a datamapper query?
Date 2011-04-26 10:46 -0500
Organization Service de news de lacave.net
Message-ID <47d2d6aba05018a39a7d39b4bf97f79e@ruby-forum.com> (permalink)

Show all headers | View raw


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

-- 
Posted via http://www.ruby-forum.com/.

Back to comp.lang.ruby | Previous | Next | Find similar | Unroll thread


Thread

Set BINARY attribute for a datamapper query? Chris Gunnels <rfsllc@gmail.com> - 2011-04-26 10:46 -0500

csiph-web