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


Groups > comp.lang.ruby > #3518

Set BINARY attribute for a datamapper query?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.134.4.91.MISMATCH!news2.euro.net!feeds.phibee-telecom.net!talisker.lacave.net!lacave.net!not-for-mail
From Chris Gunnels <rfsllc@gmail.com>
Newsgroups comp.lang.ruby
Subject Set BINARY attribute for a datamapper query?
Date Tue, 26 Apr 2011 10:46:30 -0500
Organization Service de news de lacave.net
Lines 20
Message-ID <47d2d6aba05018a39a7d39b4bf97f79e@ruby-forum.com> (permalink)
NNTP-Posting-Host bristol.highgroove.com
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-Trace talisker.lacave.net 1303832876 27929 65.111.164.187 (26 Apr 2011 15:47:56 GMT)
X-Complaints-To abuse@lacave.net
NNTP-Posting-Date Tue, 26 Apr 2011 15:47:56 +0000 (UTC)
X-Received-From This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway
X-Mail-Count 382205
X-Ml-Name ruby-talk
X-Rubymirror Yes
X-Ruby-Talk <47d2d6aba05018a39a7d39b4bf97f79e@ruby-forum.com>
Xref x330-a1.tempe.blueboxinc.net comp.lang.ruby:3518

Show key headers only | 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