Skip to content

Commit

Permalink
fix: PostgreSQL 16 不讲武德,来骗,来偷袭
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Sep 25, 2023
1 parent 9bd9833 commit 69cf5dc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func (c *Postgresql16Controller) DatabaseList(ctx http.Context) http.Response {
var databaseList []database
for _, db := range databases {
parts := strings.Split(db, "|")
if len(parts) != 8 || len(strings.TrimSpace(parts[0])) == 0 {
if len(parts) != 9 || len(strings.TrimSpace(parts[0])) == 0 {
continue
}

Expand Down Expand Up @@ -499,7 +499,7 @@ func (c *Postgresql16Controller) UserList(ctx http.Context) http.Response {
var userList []user
for _, u := range users {
userInfo := strings.Split(u, "|")
if len(userInfo) != 3 {
if len(userInfo) != 2 {
continue
}

Expand Down

0 comments on commit 69cf5dc

Please sign in to comment.