mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
Update sql.html
解决null或者undefined情况下,str.replace报错。
This commit is contained in:
@@ -143,6 +143,9 @@
|
||||
var html = "";
|
||||
for ( var i = 0; i < sqlStatList.length; i++) {
|
||||
var stat = sqlStatList[i], statSQL=stat.SQL;
|
||||
if (statSQL == null || statSQL == undefined) {
|
||||
continue;
|
||||
}
|
||||
var newStatSQL=statSQL.replace(/\"/g,"'").replace(/</g,"<").replace(/>/g,">");
|
||||
var newRow = sqlStatTable.insertRow(-1);
|
||||
html += "<tr>";
|
||||
|
||||
Reference in New Issue
Block a user