From a572bbab59d7c56e49471049b2c697b50a7342fa Mon Sep 17 00:00:00 2001 From: jackLiang Date: Tue, 13 Aug 2013 01:12:00 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0tip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/support/http/resources/sql.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/resources/support/http/resources/sql.html b/src/main/resources/support/http/resources/sql.html index 57a1f8e68d..74e0b60b48 100644 --- a/src/main/resources/support/http/resources/sql.html +++ b/src/main/resources/support/http/resources/sql.html @@ -8,6 +8,7 @@ + @@ -107,7 +108,7 @@ var newRow = sqlStatTable.insertRow(-1); html += ""; html += "" + (i + 1) + ""; - html += "" + '' + druid.common.subSqlString(stat.SQL, 25) + '' + ""; + html += "" + '' + druid.common.subSqlString(stat.SQL, 25) + '' + ""; html += "" + replace(stat.ExecuteCount) + ""; html += "" + replace(stat.TotalTime) + ""; From 5d365b77b981272b81bc865b3bd5bf09919e4cb1 Mon Sep 17 00:00:00 2001 From: jackLiang Date: Tue, 13 Aug 2013 01:39:59 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=8F=8C=E5=BC=95?= =?UTF-8?q?=E5=8F=B7=E9=97=AE=E9=A2=98=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/support/http/resources/sql.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/resources/support/http/resources/sql.html b/src/main/resources/support/http/resources/sql.html index 74e0b60b48..7f4b2507fa 100644 --- a/src/main/resources/support/http/resources/sql.html +++ b/src/main/resources/support/http/resources/sql.html @@ -104,11 +104,12 @@ var html = ""; for ( var i = 0; i < sqlStatList.length; i++) { - var stat = sqlStatList[i]; + var stat = sqlStatList[i], statSQL=stat.SQL; + var newStatSQL=statSQL.replace(/\"/g,"'"); var newRow = sqlStatTable.insertRow(-1); html += ""; html += "" + (i + 1) + ""; - html += "" + '' + druid.common.subSqlString(stat.SQL, 25) + '' + ""; + html += "" + '' + druid.common.subSqlString(stat.SQL, 25) + '' + ""; html += "" + replace(stat.ExecuteCount) + ""; html += "" + replace(stat.TotalTime) + "";