mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
StatViewServlet sql view :parser optimization
This commit is contained in:
@@ -133,8 +133,7 @@ public class StatViewServlet extends HttpServlet {
|
||||
content.append("<p>API:com.alibaba.druid.sql.SQLUtils.format(sql,DBType);</p>");
|
||||
content.append("<br>");
|
||||
|
||||
SQLStatementParser parser = new SQLStatementParser(sqlStat.getSql());
|
||||
List<SQLStatement> statementList = parser.parseStatementList();
|
||||
List<SQLStatement> statementList = SQLUtils.parseStatements(sqlStat.getSql(), sqlStat.getDbType());
|
||||
if (!statementList.isEmpty()) {
|
||||
content.append("<h2>Parse View:</h2>");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user