Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to specify an escape character in like and not_like #2549

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Expurple
Copy link
Contributor

PR Info

New Features

Bug Fixes

Breaking Changes

Changes

  • Allow to specify an escape character in like and not_like.

The old signatures were insufficiently generic and didn't accept LikeExpr. See the linked discussion.

Changing the parameter type from T: Into<String> to T: IntoLikeExpr is a backwards-compatible, because the former is already generic and is a subtype of the latter (IntoLikeExpr is implemented for T: Into<String>).

It's also consistent with the corresponding ExprTrait methods.

@Expurple
Copy link
Contributor Author

The CI failures seem unrelated to my change:

cannot find type `IpNetwork` in this scope

@Expurple Expurple force-pushed the accept-into-like-expr branch from 7a9710b to 4d4a2c3 Compare March 31, 2025 18:11
@Expurple
Copy link
Contributor Author

Rebased to pick up the CI fix and trigger a re-run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant