On Wed, Jan 27, 2010 at 12:49 PM, Dirkjan Bussink <d.buss...@gmail.com> wrote: > 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!
So just to be sure I understand this, this means that: ((color IN [] OR num_spots IN [5])) is *exactly* equivalent to: (num_spots IN [5]) Yes? Does this also mean that: ((NOT (color IN []) OR num_spots IN [5])) is exactly equivalent to (), i.e. "select all"? Since the first alternative is the negation of a set that matches nothing. -- Avdi Home: http://avdi.org Developer Blog: http://avdi.org/devblog/ The Lazy Faire: http://thelazyfaire.org Twitter: http://twitter.com/avdi Journal: http://avdi.livejournal.com -- 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.