Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/arel/visitors/postgresql.rb
View
8 lib/arel/visitors/postgresql.rb
@@ -21,6 +21,14 @@ def visit_Arel_Nodes_SelectStatement o
end
end
+ def visit_Arel_Nodes_Matches o
+ "#{visit o.left} ILIKE #{visit o.right}"
+ end
+
+ def visit_Arel_Nodes_DoesNotMatch o
+ "#{visit o.left} NOT ILIKE #{visit o.right}"
+ end
+
def using_distinct_on?(o)
o.cores.any? do |core|
core.projections.any? do |projection|
Please sign in to comment.
Something went wrong with that request. Please try again.