Skip to content

Commit

Permalink
修复sql查询页面,数据库类型为PgSQL, schema下拉列表不显示的问题 (#2283)
Browse files Browse the repository at this point in the history
Co-authored-by: 蒋宏飞 <jianghongfei@cnstrong.cn>
  • Loading branch information
CrusM and 蒋宏飞 authored Oct 8, 2023
1 parent d69227c commit c1f3a37
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sql/templates/sqlquery.html
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,14 @@ <h4 class="modal-title text-danger">收藏语句</h4>
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) {
Expand Down

0 comments on commit c1f3a37

Please sign in to comment.