diff --git a/src/ClickHouseConnection.php b/src/ClickHouseConnection.php index 15cd109..18f3c36 100644 --- a/src/ClickHouseConnection.php +++ b/src/ClickHouseConnection.php @@ -51,11 +51,9 @@ public function __construct( 'port' => $params['port'] ?? 8123, 'username' => $username, 'password' => $password, - 'settings' => array_merge([ - 'database' => $params['dbname'] ?? 'default', - ], $params['driverOptions'] ?? []), - ]); - + ], array_merge([ + 'database' => $params['dbname'] ?? 'default', + ], $params['driverOptions'] ?? [])); $this->platform = $platform; }