Skip to content

Commit b78b01e

Browse files
committed
Added a check to prevent the 'Set schema' query if a schema is not provided
1 parent 35c2806 commit b78b01e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DB2Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class DB2Connection extends Connection
3535
public function __construct(PDO $pdo, $database = '', $tablePrefix = '', array $config = [])
3636
{
3737
parent::__construct($pdo, $database, $tablePrefix, $config);
38-
$this->currentSchema = $this->defaultSchema = strtoupper($config['schema']);
38+
$this->currentSchema = $this->defaultSchema = strtoupper($config['schema'] ?? null);
3939
}
4040

4141
/**

0 commit comments

Comments
 (0)