Skip to content

Support "RETURNING INTO" part of Insert/Update/Delete statement #1780

Description

@ZhengguanLi

Hello,

We are using JSqlParser to parse Oracle PL/SQL statement, and the statement with returning ... into ... can't be parsed. For example: begin insert into table (col1) values (sysdate) returning id into new_id; commit; end. Please add support of RETURNING INTO clause in INSERT/UPDATE/DELETE statement.

Encountered unexpected token: "into" "INTO"
    at line 1, column 57.

Was expecting one of:
    "&"
    "::"
    "<<"
    ">>"
    "["
    "^"
    "|"
    "<ST_SEMICOLON>"

Activity

  1. manticore-projects commented on May 4, 2023

    @manticore-projects
    Contributor

    Greetings.

    INSERT INTO ... RETURNING ... is actually supported but without the the Oracle specific RETURNING ... INTO ....
    I will add it.

  2. ZhengguanLi commented on May 11, 2023

    @ZhengguanLi
    Author

    Do we have a rough date on when this feature can be added or which version? Thanks!

  3. manticore-projects commented on May 11, 2023

    @manticore-projects
    Contributor

    Tomorrow evening, Version 5.0 SNAPSHOT.

  4. added a commit that references this issue on May 16, 2023
    4fb1cfb
  5. manticore-projects commented on May 16, 2023

    @manticore-projects
    Contributor

    Done via 4fb1cfb with PR #1778

  6. added a commit that references this issue on Jun 15, 2023
    a815f5f
  7. added a commit that references this issue on Jun 27, 2023
    c79dfff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions