Skip to content

Commit

Permalink
skip Postgres' connection param if the value is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed Oct 9, 2024
1 parent 053e4f2 commit 07cc1a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drivers/Pgsql/PgsqlDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function connect(array $params, ILogger $logger): void
$params = $this->processConfig($params);
$connectionString = '';
foreach ($knownKeys as $key) {
if (isset($params[$key])) {
if (isset($params[$key]) && $params[$key] !== '') {
$connectionString .= $key . '=' . $params[$key] . ' ';
}
}
Expand Down

0 comments on commit 07cc1a7

Please sign in to comment.