use of net.sf.jsqlparser.parser.ParseException in project herddb by diennea.
the class JSQLParserPlanner method parseStatement.
private net.sf.jsqlparser.statement.Statement parseStatement(String query) throws StatementExecutionException {
net.sf.jsqlparser.statement.Statement stmt;
CCJSqlParser parser = new CCJSqlParser(new StringProvider(query));
// parser.setErrorRecovery(true);
try {
return parser.Statement();
} catch (ParseException err) {
throw new StatementExecutionException("unable to parse query " + query, err);
}
}
Aggregations