From b78b01e7cda8c867ee1bee2b0ee855bdaf9b9b5f Mon Sep 17 00:00:00 2001 From: Maxime Rault Date: Wed, 11 Jul 2018 15:42:40 +0200 Subject: [PATCH] Added a check to prevent the 'Set schema' query if a schema is not provided --- src/DB2Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DB2Connection.php b/src/DB2Connection.php index 0425d9a..c07b813 100644 --- a/src/DB2Connection.php +++ b/src/DB2Connection.php @@ -35,7 +35,7 @@ class DB2Connection extends Connection public function __construct(PDO $pdo, $database = '', $tablePrefix = '', array $config = []) { parent::__construct($pdo, $database, $tablePrefix, $config); - $this->currentSchema = $this->defaultSchema = strtoupper($config['schema']); + $this->currentSchema = $this->defaultSchema = strtoupper($config['schema'] ?? null); } /**