Skip to content

Commit

Permalink
#84 | Escape dbUser instead of objectName
Browse files Browse the repository at this point in the history
  • Loading branch information
1t5j0y committed Mar 13, 2024
1 parent 1b9f842 commit 377ba92
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ private StringBuilder grantPermissions(String dbSchema, String user) {

private StringBuilder grantPermissionsToObject(String dbSchema, String user, String objectName) {
return new StringBuilder().append("grant all privileges on all ")
.append(QUOTE)
.append(objectName)
.append(QUOTE)
.append(" in schema ")
.append(QUOTE)
.append(dbSchema)
.append(QUOTE)
.append(" to ")
.append(QUOTE)
.append(user)
.append(QUOTE)
.append(END_STATEMENT)
.append(NEWLINE);
}
Expand Down

0 comments on commit 377ba92

Please sign in to comment.