[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

find with null gives exception

Junkone

11/9/2007 1:08:00 AM

this one gives me a exception. what is the syntax if i use the find
and wnat to return records with certail column null in it.
Rawdata.find(:all, :conditions=>{:processed_indicator => NULL })

1 Answer

Clifford Heath

11/9/2007 1:12:00 AM

0

Junkone wrote:
> this one gives me a exception. what is the syntax if i use the find
> and wnat to return records with certail column null in it.
> Rawdata.find(:all, :conditions=>{:processed_indicator => NULL })

Please ask Rails questions on the Rails list. You want:
Rawdata.find(:all, :conditions=>["processed_indicator is NULL"])