Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Missing cidr and inet operators #550

Closed
r-stu31 opened this Issue · 1 comment

2 participants

r-stu31 Jeremy Evans
r-stu31

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 <<=).

Jeremy Evans

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
Something went wrong with that request. Please try again.