Skip to content

Commit

Permalink
Merge pull request #658 from jskswamy/allow-special-character-in-su-u…
Browse files Browse the repository at this point in the history
…sername

Allow special characters in pg-su-username
  • Loading branch information
sgotti authored Jun 4, 2019
2 parents 259ef10 + fa93d9a commit 19f1d26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/postgresql/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func setPassword(ctx context.Context, connParams ConnParams, username, password
}
defer db.Close()

_, err = dbExec(ctx, db, fmt.Sprintf(`alter role %s with password '%s';`, username, password))
_, err = dbExec(ctx, db, fmt.Sprintf(`alter role "%s" with password '%s';`, username, password))
return err
}

Expand Down

0 comments on commit 19f1d26

Please # to comment.