Skip to content

Commit

Permalink
fix: apply Marco' suggestion
Browse files Browse the repository at this point in the history
Signed-off-by: wolfox <[email protected]>
  • Loading branch information
gabriele-wolfox committed Dec 18, 2024
1 parent 5388ab9 commit ca88ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/management/controller/roles/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ func appendInRoleOptions(role DatabaseRole, query *strings.Builder) {
quotedInRoles := make([]string, len(role.InRoles))

for i, inRole := range role.InRoles {
quotedInRoles[i] = pq.QuoteIdentifier(inRole)
quotedInRoles[i] = pgx.Identifier{inRole}.Sanitize()
}

query.WriteString(fmt.Sprintf(" IN ROLE %s ", strings.Join(quotedInRoles, ",")))
Expand Down

0 comments on commit ca88ae1

Please sign in to comment.