Skip to content

Commit

Permalink
Merge pull request #815 from hhyo/LeoQuote-patch-1
Browse files Browse the repository at this point in the history
use self.db_name when getting db list
  • Loading branch information
hhyo authored Jul 16, 2020
2 parents c63393c + 0500e40 commit 275cb19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/engines/pgsql.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def get_all_databases(self):
获取数据库列表
:return:
"""
result = self.query(sql=f"SELECT datname FROM pg_database;")
result = self.query(sql=f"SELECT datname FROM pg_database;", db_name=self.db_name)
db_list = [row[0] for row in result.rows if row[0] not in ['postgres', 'template0', 'template1']]
result.rows = db_list
return result
Expand Down

0 comments on commit 275cb19

Please sign in to comment.