I'm trying to do a modulus operation using the Sequel DSL, with no success.
I've simplified the problem down to
DB[:users].where{id.sql_number % 2}
That keeps throwing:
Sequel::Error: Invalid SQL Expression type:
#<Sequel::SQL::NumericExpression @op=>:%,
@args=>[#<Sequel::SQL::NumericExpression @op=>:NOOP,
@args=>[#<Sequel::SQL::Identifier @value=>:id>]>, 2]>
I have the sequel gem version 4.3.0 installed, along with sequel-rails
0.7.0 (if that matters). And this is in a rails 4.0 environment.
Any suggestions?
Luke
--
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/groups/opt_out.