diff --git a/src/DB2Connector.php b/src/DB2Connector.php index 0025688..ce5f0c7 100644 --- a/src/DB2Connector.php +++ b/src/DB2Connector.php @@ -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)