New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] JSQLParser 4.9 fails to parse subsequent statements after parsing FUNCTION statement #1994
Comments
Greetings. Both statements get parsed and no error message is thrown. What exactly is the challenge please? |
The "INDEX" keyword also failed to convert. CREATE INDEX "index_keyword" ON "inter"."inter_ti_rec" USING btree (
"keyword" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
); Software Information:
|
Executing the following code will throw an exception. try {
Statements statements = CCJSqlParserUtil.parseStatements(sql);
return statements;
} catch (JSQLParserException e) {
log.error(e.getMessage());
throw new RuntimeException("Failed to parse the Sql file, please check if the Sql file is correct.");
} Exception Info:c.s.g.util.sqlparse.BaseSqlParser : net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "end" "END" Was expecting one of:
|
hi there!
I am using the JSQLParser4.9 tool to parse SQL DDL statements, but I encountered a problem when parsing the following statement:
SQL Example:
Software Information:
Thank you very much!
The text was updated successfully, but these errors were encountered: