Skip to content

Commit

Permalink
Merge pull request #1 from BWICompanies/alanseiden-patch-1
Browse files Browse the repository at this point in the history
Only use schema if nonblank
  • Loading branch information
Bennett authored Dec 21, 2022
2 parents 234cf5b + 3894420 commit f20c111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DB2Connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function connect(array $config): \PDO
$this->getOptions($config)
);

if (isset($config['schema'])) {
if (isset($config['schema']) && $config['schema'] !== '') {
$schema = $config['schema'];

$connection->prepare('set schema '.$schema)
Expand Down

0 comments on commit f20c111

Please sign in to comment.