From c1f3a37d2b812279ffe2743fbf83279c2a410202 Mon Sep 17 00:00:00 2001 From: jianghongfei Date: Sun, 8 Oct 2023 16:34:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dsql=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=95=B0=E6=8D=AE=E5=BA=93=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=B8=BAPgSQL,=20schema=E4=B8=8B=E6=8B=89=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(#2283)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 蒋宏飞 --- sql/templates/sqlquery.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sql/templates/sqlquery.html b/sql/templates/sqlquery.html index 6fd519a930..d867f0c62c 100644 --- a/sql/templates/sqlquery.html +++ b/sql/templates/sqlquery.html @@ -1115,6 +1115,14 @@ resource_type: resource_type }, complete: function () { + if (optgroup === "PgSQL") { + //获取schema + $("#div-schema_name").show(); + $("#schema_name").selectpicker('val', db_name); + if ($("#schema_name").val()) { + $("#schema_name").selectpicker().trigger("change"); + } + } }, success: function (data) { if (data.status === 0) {