Skip to content

Commit

Permalink
backport of commit 55dac2a (#28524)
Browse files Browse the repository at this point in the history
Co-authored-by: Lee Boynton <[email protected]>
  • Loading branch information
1 parent f235b54 commit dc03fec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog/28519.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
database/postgresql: Fix potential error revoking privileges in postgresql database secrets engine when a schema contains special characters
```
2 changes: 1 addition & 1 deletion plugins/database/postgresql/postgresql.go
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ func (p *PostgreSQL) defaultDeleteUser(ctx context.Context, username string) err
}
revocationStmts = append(revocationStmts, fmt.Sprintf(
`REVOKE ALL PRIVILEGES ON ALL TABLES IN SCHEMA %s FROM %s;`,
(schema),
dbutil.QuoteIdentifier(schema),
dbutil.QuoteIdentifier(username)))

revocationStmts = append(revocationStmts, fmt.Sprintf(
Expand Down

0 comments on commit dc03fec

Please sign in to comment.