From 266834fb81a79db7297015466d7628249667e368 Mon Sep 17 00:00:00 2001 From: hhyo Date: Sat, 17 Sep 2022 10:57:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=95=B0=E6=8D=AE=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E4=B8=AD=E5=88=97=E8=A1=A8=E7=B1=BB=E5=9E=8B=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=AD=A3=E5=B8=B8=E5=B1=95=E7=A4=BA=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20fix=20#1645=20#1792?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/templates/sqlquery.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sql/templates/sqlquery.html b/sql/templates/sqlquery.html index a52ef02f57..982a822595 100644 --- a/sql/templates/sqlquery.html +++ b/sql/templates/sqlquery.html @@ -763,12 +763,11 @@ } }, formatter: function (value, row, index, field) { - if (typeof (value) == "object" && Object.prototype.toString.call(value).toLowerCase() == "[object object]" && !value.length) { + if (value instanceof Array || value instanceof Object){ return JSON.stringify(value); } return value } - }); }); if (result['full_sql'].match(/^show\s+create\s+table/)) {