On Tue, Jan 5, 2021 at 4:06 AM [email protected] <[email protected]> wrote:

> Hi there.  Thanks for the reply.
>
> That isn't explained at all on that page.  "You can also use the =~
> operator:" has little explanation. I tried "==" and it worked as well.
> Because it was a negation, I thought using "=" would/should have worked.
> So this is working:
>
>     exclude{(lat == 0.0) & (lon == 0.0)}.
>

That probably isn't doing what you think it is doing, because Sequel does
not override the == operator.  Look at the SQL generated.

Equality conditions in Sequel either use a hash or the =~ operator. You
probably want:

exclude(:lat=>0.0, :lon=>0.0)
# or
exclude{(lat =~ 0.0) & (lon =~ 0.0)}

Thanks,
Jeremy

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/CADGZSSd%3DbSAg9XKmr1WPD%3DkFQWLwNW0gw8JoUXxdGSN5q3vd5g%40mail.gmail.com.

Reply via email to