property :some_prop, Object

model.some_prop = nil
model.save

This stores "BAgw\n" in the field (the Base64'd Marshaled version of
nil)

Then:

Model.first :some_prop.not => nil

generates the query: WHERE (NOT(`some_prop` IS NULL)

However since that field isn't actually NULL, the query skips over
this record.

So how do I find all records that have that field set to nil?

-Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to datamap...@googlegroups.com.
To unsubscribe from this group, send email to 
datamapper+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to