Missing cidr and inet operators #550

Closed
r-stu31 opened this Issue Sep 14, 2012 · 1 comment

Projects

None yet

2 participants

@r-stu31
r-stu31 commented Sep 14, 2012

The <<= and >>= operators (http://www.postgresql.org/docs/9.1/static/functions-net.html#CIDR-INET-OPERATORS-TABLE) are missing in sequel/lib/sequel/sql.rb so it is not possible to use the operators in Sequel expressions (Sequel::Error: Invalid operator <<=).

@jeremyevans
Owner

Those operators don't exist in ruby (well, they exist, but a <<= b is basically a = a << b, you can't define <<= separately).

If you want to use these operators, you should use literal SQL: Sequel.lit("? <<= ?", :a, :b)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment