Skip to content

Commit

Permalink
Fix issue with database name
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Kovalev committed Jul 1, 2019
1 parent e573327 commit a466d89
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/ClickHouseConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a466d89

Please sign in to comment.