JSqlParser icon indicating copy to clipboard operation
JSqlParser copied to clipboard

[BUG] JSQLParser 4.0 : DM : Oracle `INSERT ALL ...` unsupported

Open FelixDxc opened this issue 8 months ago • 1 comments

Always check against the Latest SNAPSHOT of JSQLParser and the Syntax Diagram

Failing SQL Feature:

  • net.sf.jsqlparser.JSQLParserException: Encountered unexpected token: "ALL" "ALL" at line 1, column 8. Was expecting one of:

    "ACTION" "ANY" "BYTE" "CASCADE" "CAST" "CHANGE" "CHAR" "CHARACTER" "COLUMN" "COLUMNS" "COMMENT" "COMMIT" "CREATE" "CYCLE" "DELAYED" "DESC" "DESCRIBE" "DISABLE" "DIV" "DO" "DOUBLE" "DUPLICATE" "ENABLE" "END" "EXCLUDE" "EXTRACT" "FALSE" "FIRST" "FN" "FOLLOWING" "FORMAT" "GROUP" "HIGH_PRIORITY" "IF" "IGNORE" "INDEX" "INSERT" "INTERVAL" "INTO" "ISNULL" "KEY" "LAST" "LEFT" "LIMIT" "LOW_PRIORITY" "MATERIALIZED" "NEXTVAL" "NO" "NOLOCK" "NULLS" "OF" "OFFSET" "ON" "OPEN" "OPTIMIZE" "ORDER" "OVER" "PARTITION" "PATH" "PERCENT" "PRECISION" "PRIMARY" "PRIOR" "PROCEDURE" "PUBLIC" "RANGE" "READ" "REPLACE" "RIGHT" "ROW" "ROWS" "SCHEMA" "SEPARATOR" "SEQUENCE" "SESSION" "SET" "SIBLINGS" "SIZE" "START" "TABLE" "TABLES" "TEMP" "TEMPORARY" "TO" "TOP" "TRUE" "TRUNCATE" "TYPE" "UNSIGNED" "VALIDATE" "VALUE" "VALUES" "VIEW" "XML" "ZONE" <K_DATETIMELITERAL> <K_DATE_LITERAL> <S_IDENTIFIER> <S_QUOTED_IDENTIFIER>

SQL Example:

  • Simplified Query Example, focusing on the failing feature
    -- INSERT ALL into spm_message (xx,xx) VALUES(?, ?) SELECT * FROM dual
    

Software Information:

  • JSqlParser version 4.0
  • DM

Tips:

Please write in English and avoid Screenshots (as we can't copy and paste content from it). Try your example online with the latest JSQLParser and share the link in the error report. Do provide Links or References to the specific Grammar and Syntax you are trying to use.

FelixDxc avatar Mar 04 '25 09:03 FelixDxc