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

Support a = BINARY b #31

Open
adamziel opened this issue Apr 12, 2023 · 2 comments
Open

Support a = BINARY b #31

adamziel opened this issue Apr 12, 2023 · 2 comments

Comments

@adamziel
Copy link
Collaborator

MySQL supports syntax like a = BINARY b that SQLite don't. I think it's the same as a = CAST(b as BINARY) – so a byte-by-byte comparison, or, effectively, a case-sensitive comparison – but that needs to be confirmed. Let's support it.

@mdbraber
Copy link

mdbraber commented May 31, 2023

This seems to be the cause of an error thrown by wp-cli using search-replace which creates queries like

SELECT `meta_id` FROM `wp_commentmeta`  WHERE `meta_value` LIKE BINARY '%search%' ORDER BY `meta_id` ASC LIMIT 1000 OFFSET 0

@batonac
Copy link

batonac commented Jul 18, 2023

Another alternative might be SQLite GLOB, as referenced in the duplicate issue above.

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

No branches or pull requests

3 participants