On 26 Jan 2010, at 16:20, Avdi Grimm wrote:
> 
> In DataMapper's backend-neutral query format, the query looks like this:
> 
>  ((color IN [] OR num_spots IN [5]))
> 
> I read this as "color is unset OR it has 5 spots".

This should be read as color is part of the set []. Since nothing is part of 
the empty set, this clause always results in false. Therefore the final result 
should only be @five and nothing else. This is something completely different 
from color != nil!

> According to the spec, this should return just the @five object.  It
> seems to me it should return both @five and @two, since they both
> match the first part of the condition (color is unset).  This is what
> the SimpleDB adapter currently returns.
> 
> If anyone could explain the rationale behind the example I'd greatly
> appreciate it.  Thanks!

See above :). 

-- 
Regards,

Dirkjan Bussink

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