Skip to content

Commit

Permalink
Merge pull request #1126 from swordqiu/hotfix/qj-dameng-grant-fixes
Browse files Browse the repository at this point in the history
fix: dameng should grant soi to user
  • Loading branch information
zexi authored Aug 13, 2024
2 parents c7c55b4 + 2af0dc5 commit c163a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/dameng/dameng.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func (conn *Connection) createUserPassword(username string, password string) err
}

func (conn *Connection) ensureUserRoles(username string) error {
sql := fmt.Sprintf(`GRANT resource,public TO %s`, username)
sql := fmt.Sprintf(`GRANT resource,public,soi TO %s`, username)
_, err := conn.db.Exec(sql)
return errors.Wrapf(err, "exec %s", sql)
}
Expand Down

0 comments on commit c163a83

Please sign in to comment.