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: resultsets should be updateable if there is a unique constraint on the table fixes issue #2196 #2199

Merged
merged 1 commit into from Jul 1, 2021

Conversation

davecramer
Copy link
Member

Created a protected method inside PgDatabaseMetaData to extend the search for primary keys to include unique keys as well
Added tests

@davecramer davecramer merged commit 944fa0a into pgjdbc:master Jul 1, 2021
@davecramer davecramer deleted the fixupdatable_2196 branch July 1, 2021 18:09
davecramer added a commit to davecramer/pgjdbc that referenced this pull request Jul 12, 2021
…2199 made some incorrect assumptions about unique keys that were incorrect.

When we have both primary keys and unique keys only use the Primary keys for updating the row.
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.

None yet

1 participant