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

sql: fix bug with decoding descending collated strings #46570

Merged
merged 1 commit into from
Mar 25, 2020

Conversation

rohany
Copy link
Contributor

@rohany rohany commented Mar 25, 2020

Fixes #46394.

Fixes a bug where the decoding logic for collated strings
would assume the collated string was always in encoded
to be sorted in ascending order.

Release justification: fixes a bug
Release note (bug fix): Fixes a bug where operations on an index
that contained a collated string in descending order would fail.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Fixes cockroachdb#46394.

Fixes a bug where the decoding logic for collated strings
would assume the collated string was always in encoded
to be sorted in ascending order.

Release justification: fixes a bug
Release note (bug fix): Fixes a bug where operations on an index
that contained a collated string in descending order would fail.
Copy link
Contributor

@otan otan left a comment

Choose a reason for hiding this comment

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

ooh, that bug

image

@rohany
Copy link
Contributor Author

rohany commented Mar 25, 2020

bors r=otan

@craig
Copy link
Contributor

craig bot commented Mar 25, 2020

Build succeeded

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.

sql: UPSERT causes a decoding error in collated string column
3 participants