Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

Commit

Permalink
Add support of label.
Browse files Browse the repository at this point in the history
  • Loading branch information
komex committed May 16, 2017
1 parent 9974a14 commit 3a267f3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/Che/DBAL/Vertica/VerticaDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,16 @@ function ($val) {
}
);

$dsn .= sprintf(
"ConnSettings=%s;",
str_replace([';', ' '], ['%3B', '+'], implode('%3B', $connectionSettings))
);
if (!empty($connectionSettings)) {
$dsn .= sprintf(
"ConnSettings=%s;",
str_replace([';', ' '], ['%3B', '+'], implode('%3B', $connectionSettings))
);
}

if (isset($driverOptions['label'])) {
$dsn .= 'Label=' . $driverOptions['label'];
}
}

return $dsn;
Expand Down

0 comments on commit 3a267f3

Please sign in to comment.