Skip to content

Commit 24eb461

Browse files
authored
Merge pull request #31 from kovalevm/fix-dbname
Fix issue with database name
2 parents e573327 + a466d89 commit 24eb461

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/ClickHouseConnection.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,9 @@ public function __construct(
5151
'port' => $params['port'] ?? 8123,
5252
'username' => $username,
5353
'password' => $password,
54-
'settings' => array_merge([
55-
'database' => $params['dbname'] ?? 'default',
56-
], $params['driverOptions'] ?? []),
57-
]);
58-
54+
], array_merge([
55+
'database' => $params['dbname'] ?? 'default',
56+
], $params['driverOptions'] ?? []));
5957
$this->platform = $platform;
6058
}
6159

0 commit comments

Comments
 (0)