Skip to content

How to retrieve updateSets of InsertConflictAction #1630

Closed

Description

@leotu
"...UPDATE SET column"

Code: InsertConflictAction.java

There is no public method to get variable "updateSets".

public class InsertConflictAction {
    ConflictActionType conflictActionType;

    private final ArrayList<UpdateSet> updateSets = new ArrayList<>();
    Expression whereExpression;
...
}
InsertConflictAction conflictAction = insert.getConflictAction();
Missing method ==> conflictAction.getUpdateSets() ?

Activity

  1. manticore-projects commented on Sep 15, 2022

    @manticore-projects
    Contributor

    Greetings.

    There is no public method to get variable "updateSets".

    There certainly is in JSQLParser 4.6 SNAPSHOT:
    image

    What version of JSQLParser are you using please.
    You can try it online here

  2. leotu commented on Sep 15, 2022

    @leotu
    Author

    jsqlparser version 4.5

  3. manticore-projects commented on Sep 15, 2022

    @manticore-projects
    Contributor

    Apologies, I have checked the code and indeed a public Getter is missing.
    I would add it asap and issue a PR.

    Thank you for notifying!

  4. added a commit that references this issue on Sep 15, 2022
    09c2fb7
  5. manticore-projects commented on Sep 15, 2022

    @manticore-projects
    Contributor

    I have issued PR #1632
    You can use the attached Snapshot JAR as a remedy.
    jsqlparser-4.5-SNAPSHOT.zip

    Thank you again for your report!

  6. added a commit that references this issue on Sep 20, 2022
    d221277
  7. added a commit that references this issue on Oct 16, 2022
    15ff843
  8. added a commit that references this issue on Nov 20, 2022
    bff268a
  9. added a commit that references this issue on Dec 22, 2022
    8d9db70
  10. added a commit that references this issue on Jan 31, 2023
    2ced7de
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions