On Wednesday, June 25, 2014 3:54:21 AM UTC-7, Simon Dahlbacka wrote: > > Hi, > > I've tried to read the docs but haven't been able to figure out how to get > the two following where clauses ORed together > > .where(:OACUOR => request[:customersOrderNumber]) > .where(db[:OOLINE].where( >
In this case, just change this .where to .or: .or(db[:OOLINE].where( For more general cases, Sequel.| can be used to OR arbitrary expressions. 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 http://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
