Skip to content

Commit bb73334

Browse files
authored
quote admin user to allow names with special characters (zalando#2774)
1 parent 41f5fe1 commit bb73334

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/util/users/users.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const (
2424
doBlockStmt = `SET LOCAL synchronous_commit = 'local'; DO $$ BEGIN %s; END;$$;`
2525
passwordTemplate = "ENCRYPTED PASSWORD '%s'"
2626
inRoleTemplate = `IN ROLE %s`
27-
adminTemplate = `ADMIN %s`
27+
adminTemplate = `ADMIN "%s"`
2828
)
2929

3030
// DefaultUserSyncStrategy implements a user sync strategy that merges already existing database users

0 commit comments

Comments
 (0)