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

Fix incorrect results for long string or-equal queries #3386

Merged
merged 1 commit into from Sep 16, 2019

Conversation

tgoyne
Copy link
Member

@tgoyne tgoyne commented Sep 12, 2019

BinaryData::size() includes the nul terminator while StringData::size() does not, so the BinaryData -> StringData conversion was incorrect and resulted in queries never matching when the low-level storage was ArrayBigBlobs.

Reported at realm/realm-swift#6249.

BinaryData::size() includes the nul terminator while StringData::size() does
not, so the BinaryData -> StringData conversion was incorrect and resulted in
queries never matching when the low-level storage was ArrayBigBlobs.
Copy link
Contributor

@ironage ironage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯Great fix!

@tgoyne tgoyne merged commit c4eb632 into master Sep 16, 2019
@tgoyne tgoyne deleted the tg/long-string-or-equal branch September 16, 2019 19:46
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants