From fa93d9a83dc6de40981827cce19f468a49d3f94b Mon Sep 17 00:00:00 2001 From: Dinesh Date: Sat, 1 Jun 2019 01:45:35 +0530 Subject: [PATCH] Enclose role in 'alter role command' with double quotes --- internal/postgresql/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/postgresql/utils.go b/internal/postgresql/utils.go index 5b8c736d4..d7a814526 100644 --- a/internal/postgresql/utils.go +++ b/internal/postgresql/utils.go @@ -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 }