Skip to content

Commit

Permalink
Support ILIKE ANY in Postgres, similar to LIKE ANY
Browse files Browse the repository at this point in the history
Applies the same change from 9e9a5d7 to
Postgres-specific ILIKE code.

Since requires_like_escape? is false on PostgreSQL, this just removes
the use of ESCAPE for ILIKE.
  • Loading branch information
gilesbowkett authored and jeremyevans committed Jul 27, 2023
1 parent c280ff5 commit b047c73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
=== master

* Support ILIKE ANY on PostgreSQL by not forcing the use of ESCAPE for ILIKE (gilesbowkett) (#2066)

* Add pg_xmin_optimistic_locking plugin for optimistic locking for all models without database changes (jeremyevans)

* Recognize the xid PostgreSQL type as an integer type in the jdbc/postgresql adapter (jeremyevans)
Expand Down
2 changes: 0 additions & 2 deletions lib/sequel/adapters/shared/postgres.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1745,8 +1745,6 @@ def complex_expression_sql_append(sql, op, args)
literal_append(sql, args[0])
sql << ' ' << op.to_s << ' '
literal_append(sql, args[1])
sql << " ESCAPE "
literal_append(sql, "\\")
sql << ')'
else
super
Expand Down

0 comments on commit b047c73

Please sign in to comment.