Any datamapper query except specific and exact matches returns the
right count of items but every item in the returned collection is a
duplicate of the first item found.

Example

Post.all

returns a collection of 1700 items - all duplicates of the first row

Post.all(:status => 'published')

returns a collection of 900 items - all of them are correct

This happens on every single table no matter what I use - the only
thing that works correctly is the second form Post.all(:status.like =>
'pub%') will give me the 900 items again but they are all duplicates
of the first one found.

I thought my adapter might be screwed up but it does the same thing
with sqlite as well...

Am I just doing something stupid that I cannot see? Any ideas?

Thanks

RB

-- 
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.

Reply via email to