Skip to content

Commit

Permalink
sid='0'时获取数据库对象出错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
showpy committed Mar 30, 2022
1 parent 2786103 commit 6d29ae0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions class/public.py
Original file line number Diff line number Diff line change
Expand Up @@ -1752,6 +1752,7 @@ def get_mysql_obj(db_name):

# 取mysql数据库对像 By sid
def get_mysql_obj_by_sid(sid = 0,conn_config = None):
if sid in ['0','']: sid = 0
if sid:
if not conn_config: conn_config = M('database_servers').where("id=?" ,sid).find()
import db_mysql
Expand Down

0 comments on commit 6d29ae0

Please sign in to comment.