Skip to content

Update ignore and delete ignore not parseable #1254

Closed
@Todd102030

Description

@Todd102030

Describe the bug
Update ignore and delete ignore statements throw exception when parsing.

To Reproduce
Steps to reproduce the behavior:

  1. Example SQL
    update ignore tRequirement set VendorItem=? where cn=@cn and VendorItem=?

  2. Parsing this SQL using JSqlParser with this statements
    SimpleNode node = (SimpleNode) CCJSqlParserUtil.parseAST(sqlInput);

  3. Exception
    Encountered unexpected token: "ignore" "IGNORE"
    at line 1, column 8.

Expected behavior
Expected to parse similarly to statements without the "ignore" keyword

System

  • MySQL 8.0
  • Java Version - JDK 8
  • JSqlParser version - 4.1

Thanks for all your work on this library, it's really great!

Metadata

Metadata

Assignees

No one assigned

    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