Skip to content

Commit

Permalink
Enclose role in 'alter role command' with double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
dineshba committed May 31, 2019
1 parent 44f222c commit d60926f
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 d60926f

Please # to comment.