Skip to content

Commit

Permalink
Update command to use doublequotes for username (#192)
Browse files Browse the repository at this point in the history
Username like ab&xyz is not working
  • Loading branch information
applyACS authored May 2, 2023
1 parent 2fa7c75 commit 3b9fd47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Databases/PostgreSql.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function getDumpCommand(string $dumpFile): string

$command = [
"{$quote}{$this->dumpBinaryPath}pg_dump{$quote}",
"-U {$this->userName}",
"-U \"{$this->userName}\"",
'-h '.($this->socket === '' ? $this->host : $this->socket),
"-p {$this->port}",
];
Expand Down

0 comments on commit 3b9fd47

Please sign in to comment.