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

[hotfix][Connector/JDBC] Remove unnecessary unique fields of PostgreSQL upsert statement #155

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

roseduan
Copy link
Contributor

@roseduan roseduan commented Feb 5, 2025

In PostgreSQL, there is no need to specify the unique key fields in the DO UPDATE SET clause.

See more details in https://www.postgresql.org/docs/current/sql-insert.html

Copy link

boring-cyborg bot commented Feb 5, 2025

Thanks for opening this pull request! Please check out our contributing guidelines. (https://flink.apache.org/contributing/how-to-contribute.html)

@roseduan roseduan force-pushed the improve_postgres_upsert branch from e9f3681 to 3a9ac70 Compare February 6, 2025 09:59
@roseduan roseduan changed the title [hotfix][Connector/JDBC] Remove unnecessary update fields of PostgreSQL upsert statement [hotfix][Connector/JDBC] Remove unnecessary unique fields of PostgreSQL upsert statement Feb 6, 2025
…QL upsert statement

In PostgreSQL, there is no need to specify the unique key fields in the
DO UPDATE SET clause.

See more details in
https://www.postgresql.org/docs/current/sql-insert.html
@roseduan roseduan force-pushed the improve_postgres_upsert branch from 3a9ac70 to 3e2dfb2 Compare February 7, 2025 02:50
Copy link
Contributor

@leonardBang leonardBang left a comment

Choose a reason for hiding this comment

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

Thanks @roseduan for the update, LGTM

@leonardBang leonardBang merged commit 544275c into apache:main Feb 7, 2025
11 checks passed
Copy link

boring-cyborg bot commented Feb 7, 2025

Awesome work, congrats on your first merged pull request!

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.

2 participants