Trying to understand this and wondering whether it's a bug or not.
DB[:table].where(Sequel.|({is_active: false}, {is_complete: true})).sql
=> "SELECT * FROM \"table\" WHERE ((\"is_active\" IS FALSE) OR
(\"is_complete\" IS TRUE))"
[19] pry(main)> DB[:table].exclude(Sequel.|({is_active: false},
{is_complete: true})).sql
=> "SELECT * FROM \"table\" WHERE ((\"is_active\" IS NOT FALSE) AND
(\"is_complete\" IS NOT TRUE))"
[20] pry(main)>
when you change the where to exclude the "OR" becomes an "AND". is this a
bug? If so, is there a way around it?
--
Confidentiality Note: The information transmitted, including attachments,
is intended only for the person(s) or entity to which it is addressed and
may contain confidential and/or privileged material. Any use of this
information by persons or entities other than the intended recipient is
prohibited. If you received this in error, please contact the sender and
destroy any copies of this information.
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.