Skip to content

Commit

Permalink
根据keyspace获取databases num时,需要加1
Browse files Browse the repository at this point in the history
  • Loading branch information
王飞 authored and LeoQuote committed Apr 10, 2024
1 parent f8e1f4b commit 33c0619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/engines/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def get_all_databases(self, **kwargs):
for i in conn.info("Keyspace").keys()
if len(i.split("db")) == 2
]
rows = max(dbs + [16])
rows = max(dbs + [15]) + 1

db_list = [str(x) for x in range(int(rows))]
result.rows = db_list
Expand Down

0 comments on commit 33c0619

Please sign in to comment.