On Oct 24, 6:30 am, Han Holl <[EMAIL PROTECTED]> wrote: > > You are assuming that "filter(:marketGroupID != 0)" works. It does > > not. > > This is from the README: > > Sequel also accepts expressions: > > my_posts = posts.filter(:stamp > Date.today << 1) > > Maybe it would be a good idea to rephrase this as: > > Sequel also accepts expressions, except == and !=.
Except that there are plenty of other expressions that don't work, even simple things like reversing the order: :stamp > 1 vs. 1 > :stamp To say that it accepts expressions except == and != implies that it accepts all other expressions, which is not true. It might be more accurate to state that it supports some expressions. That would beg the question, "which expressions does it support (and why)?", which would entail going into detail about how the expression filters themselves work. In general, it's more work than I want to do. If you send in a documentation patch, I'll certainly consider applying it. Jeremy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sequel-talk" 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/sequel-talk?hl=en -~----------~----~----~----~------~----~------~--~---
