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

Unhandled Rejection (RxError (DOC19)): RxError (DOC19): Value of primary key(s) cannot be changed #3546

Conversation

y-lazarenka
Copy link

This PR contains:

Bug demonstration

Describe the problem you have without this PR

"Unhandled Rejection (RxError (DOC19)): RxError (DOC19): Value of primary key(s) cannot be changed"
Looks like you sort primaryKey values at some point of time, but sort mutates array

…tion (RxError (DOC19)): RxError (DOC19):

Value of primary key(s) cannot be changed" error
@y-lazarenka y-lazarenka changed the title value_of_primary_key_cannot_be_changed. - reproduced "Unhandled Rejec… Unhandled Rejection (RxError (DOC19)): RxError (DOC19): Value of primary key(s) cannot be changed Dec 5, 2021
@pubkey pubkey closed this in 04ec7f5 Dec 11, 2021
@pubkey
Copy link
Owner

pubkey commented Dec 11, 2021

Thank you for the test. I was able to reproduce and fix the problem.
We normalize the schema and accidentally sorted the array with the compound primary key.

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.

2 participants