Skip to content

Commit

Permalink
fix get_instance_users_summary index out of range
Browse files Browse the repository at this point in the history
  • Loading branch information
QSummerY committed Jul 22, 2024
1 parent ece8c33 commit cfe731e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sql/engines/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,11 @@ def get_instance_users_summary(self):
"host": db_user[2],
"privileges": user_priv,
"saved": False,
"is_locked": db_user[3] if server_version >= (5, 7, 6) else None,
"is_locked": (
db_user[3]
if server_version >= (5, 7, 6) or server_version >= (10, 4, 2)
else None
),
}
rows.append(row)
query_result.rows = rows
Expand Down

0 comments on commit cfe731e

Please sign in to comment.