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 uniqueness check in InsertOrGetFFI to match indexes #1346

Merged
merged 1 commit into from
Jun 19, 2023

Conversation

awrichar
Copy link
Contributor

@awrichar awrichar commented Jun 19, 2023

When guessing the reason for an insert conflict, the query needs to exactly match the configured database indexes. That means that the "name" and "networkName" queries need to both include "version" as well, otherwise we risk grabbing a row that isn't actually a conflict.

Fixes #1347

When guessing the reason for an insert conflict, the query needs to exactly match
the configured database indexes. That means that the "name" and "networkName"
queries need to both include "version" as well, otherwise we risk grabbing a
row that isn't actually a conflict.

Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
@peterbroadhurst peterbroadhurst merged commit fbd88de into main Jun 19, 2023
@awrichar awrichar deleted the ffi-conflict branch June 19, 2023 17:41
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.

Issue with conflicting FFI publishes
2 participants