-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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 set OnDuplicateKeyColumnsSegment on PostgreSQLInsertStatement #34425
base: master
Are you sure you want to change the base?
fix set OnDuplicateKeyColumnsSegment on PostgreSQLInsertStatement #34425
Conversation
Hi @shijie-328931589, can you update release note? Besides, you need add an sql parser test for this change. |
@@ -34,7 +34,7 @@ public final class PostgreSQLInsertStatement extends InsertStatement implements | |||
|
|||
private WithSegment withSegment; | |||
|
|||
private OnDuplicateKeyColumnsSegment onDuplicateKeyColumnsSegment; | |||
private OnDuplicateKeyColumnsSegment onDuplicateKeyColumns; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you check openGauss insert statement? Since they are same database dialect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, they have the same problem
@@ -45,7 +45,7 @@ public Optional<WithSegment> getWithSegment() { | |||
|
|||
@Override | |||
public Optional<OnDuplicateKeyColumnsSegment> getOnDuplicateKeyColumns() { | |||
return Optional.ofNullable(onDuplicateKeyColumnsSegment); | |||
return Optional.ofNullable(onDuplicateKeyColumns); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides, you need add sql parser test for this change.
Fixes 34424
Changes proposed in this pull request:
Before committing this PR, I'm sure that I have checked the following options:
./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e
.