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
Inconsistent enforcement of primary key constraints in transaction #2241
Comments
Looks like the key is still in the transaction's copy of the index for the second insert. |
This seems related to #1631. |
|
Since the local storage is completely isolated from other transactions this specific set of queries should not be so difficult to solve, as |
Delete rows from local storage indexes as part of transacted deletion.
Issue #2241: Transacted Index Reinsert
@akbertram Can you check whether this fixes your issue? |
@hawkfish Thanks! I have DuckDb building locally but not the JDBC connector apparently. Can you point me to any instructions on how to build the java library? |
I think all you need to do is this:
|
This is working perfectly in 0.5.0, thanks! |
What does happen?
When inserting, deleting, and then inserting again a row with a single primary key within a transaction, the final statement results in:
What should happen?
Primary key enforcement should reflect the current state of the database within the transaction.
To Reproduce
Environment (please complete the following information):
Before submitting
master
branch?The text was updated successfully, but these errors were encountered: