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

Escape _ in SQL LIKE queries for Slugs import #1217

Merged
merged 1 commit into from
Sep 4, 2022
Merged

Conversation

herrvigg
Copy link
Collaborator

@herrvigg herrvigg commented Sep 4, 2022

The previous code worked but _ is a wildcard for any character in SQL LIKE.
Escape it to make the query more reliable in case the prefix values are changed (for developers).
Ignore other wildcards.

The previous code worked but `_` is a wildcard for any character
in SQL LIKE. Escape it to make the query more reliable in case the
prefix values are changed (for developers). Ignore other wildcards.
@herrvigg
Copy link
Collaborator Author

herrvigg commented Sep 4, 2022

Not directly related to #1206 but used in the same context.

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

Successfully merging this pull request may close these issues.

None yet

1 participant