mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-20 13:44:19 +08:00
feat:upgrade jsqlparser 4.9 and add timeout
This commit is contained in:
@@ -225,7 +225,7 @@ public class SqlSelectHelper {
|
||||
public static Select getSelect(String sql) {
|
||||
Statement statement = null;
|
||||
try {
|
||||
statement = CCJSqlParserUtil.parse(sql);
|
||||
statement = CCJSqlParserUtil.parse(sql, parser -> parser.withTimeOut(20000));
|
||||
} catch (JSQLParserException e) {
|
||||
log.error("parse error, sql:{}", sql, e);
|
||||
throw new RuntimeException(e);
|
||||
|
||||
Reference in New Issue
Block a user