Skip to content

[BUG] JSQLParser Version 4.5 : ORACLE : Encountered unexpected token 'COMMENT' #1727

Closed
@mhssgzs

Description

@mhssgzs

SQL Example:

  • Simplified Query Example, focusing on the failing feature
    alter table user modify age default 0;
    

Software Information:

  • JSqlParser version 4.5
  • Database (Oracle)

CodeExample:

  • Simplified Query Example, focusing on the failing feature
        String sql = "alter table user modify age default 0";
        Validation validation = new Validation(Arrays.asList(DatabaseType.ORACLE), sql);
        List<ValidationError> validate = validation.validate();
    

Error Message:

  • Simplified Query Example, focusing on the failing feature

ValidationError [
statement=alter table user modify age default 0
capability=parsing
errors=[ParseException: Cannot parse statement: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "default" "DEFAULT"
at line 1, column 29.

Was expecting:

"COMMENT"

]
]

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