mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for split
This commit is contained in:
@@ -517,7 +517,7 @@ public class SQLParserUtils {
|
||||
{
|
||||
Lexer lexer = createLexer(sql, dbType);
|
||||
lexer.nextToken();
|
||||
if (lexer.identifierEquals("pai")) {
|
||||
if (lexer.identifierEquals("pai") || lexer.identifierEquals("jar")) {
|
||||
return Collections.singletonList(sql);
|
||||
}
|
||||
}
|
||||
@@ -589,6 +589,11 @@ public class SQLParserUtils {
|
||||
dbType = DbType.other;
|
||||
}
|
||||
|
||||
sql = sql.trim();
|
||||
if (sql.startsWith("jar")) {
|
||||
return sql;
|
||||
}
|
||||
|
||||
boolean containsComment = false;
|
||||
{
|
||||
Lexer lexer = createLexer(sql, dbType);
|
||||
|
||||
Reference in New Issue
Block a user