diff --git a/db/dialect_postgres.go b/db/dialect_postgres.go index 5a1878c..52ce3f8 100644 --- a/db/dialect_postgres.go +++ b/db/dialect_postgres.go @@ -247,7 +247,7 @@ func (d postgresDialect) CreateUser(tx Tx, ctx context.Context, l *Loader, usern GRANT SELECT ON ALL TABLES IN SCHEMA public TO %s; `, user, pass, db, user, user, user, user) } else { - q = fmt.Sprintf("CREATE USER %s WITH PASSWORD '%s'; GRANT ALL PRIVILEGES ON DATABASE %s TO %s;", user, pass, db, user) + q = fmt.Sprintf("CREATE USER %s WITH PASSWORD %s; GRANT ALL PRIVILEGES ON DATABASE %s TO %s;", user, pass, db, user) } _, err := tx.ExecContext(ctx, q)