On Tuesday, August 23, 2016 at 10:41:50 AM UTC-7, Matt Campbell wrote: > > Here's the link to the postgres docs for what I'm trying to do: > https://www.postgresql.org/docs/9.5/static/functions-comparison.html > > I want to generate SQL that looks like this: > > SELECT (a IS DISTINCT FROM b) > > This is logically equivalent to > SELECT (a IS NULL) OR (a = b) > > > Does anyone know if this is currently supported in sequel? >
There's no DSL support for it, you'd have to use SQL code (e.g. Sequel.lit) or just use the longer form(Sequel.or([[:a, nil], [:a, :b]])). 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 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.
