You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The deprecation of pg::expression::dsl::any will prevent the use of it in conjunction with any of expression_methods::TextExpressionMethods::like, expression_methods::TextExpressionMethods::like, diesel::expression_methods::PgTextExpressionMethods::ilike, or diesel::expression_methods::PgTextExpressionMethods::not_ilike.
This similarly applies for pg::expression::dsl::all.
Before total removal of these functions in a 3.0.0 release, some alternative should be in place to represent the same semantics.
The text was updated successfully, but these errors were encountered:
hgzimmerman
changed the title
Deprecation of dsl::any will prevent expression_methods::TextExpressionMethods::like(any(<expr>))
Deprecation of dsl::any will prevent use ofTextExpressionMethods::like(any(<expr>))Oct 4, 2022
hgzimmerman
changed the title
Deprecation of dsl::any will prevent use ofTextExpressionMethods::like(any(<expr>))
Deprecation of dsl::any will prevent use of TextExpressionMethods::like(any(<expr>))Oct 4, 2022
I'm using diesel 2.1.4 with stable Rust 1.76. My code returns search results, performing substring search and full-text search. To do substring search, it queries Postgres with LIKE ANY ( "%term1%", "%term2%", ...). Diesel has no like_any function, so I'm using like and any. Since any was deprecated in fa3dc3e , the Rust compiler shows a deprecation warning.
Is there a way to do LIKE ANY without using the deprecated any function or sql?
Is there a way to do LIKE ANY without using the deprecated any function or sql?
Not with the built-in DSL. You would build your own DSL extension for that. Otherwise we are open to receive contributions that provide a built-in not-deprecated DSL node for this functionality.
Feature Flags
Problem Description
The deprecation of
pg::expression::dsl::any
will prevent the use of it in conjunction with any ofexpression_methods::TextExpressionMethods::like
,expression_methods::TextExpressionMethods::like
,diesel::expression_methods::PgTextExpressionMethods::ilike
, ordiesel::expression_methods::PgTextExpressionMethods::not_ilike
.This similarly applies for
pg::expression::dsl::all
.Before total removal of these functions in a 3.0.0 release, some alternative should be in place to represent the same semantics.
The text was updated successfully, but these errors were encountered: