Skip to content

Commit

Permalink
Merge pull request #31 from kovalevm/fix-dbname
Browse files Browse the repository at this point in the history
Fix issue with database name
  • Loading branch information
mochalygin authored Jul 17, 2019
2 parents e573327 + a466d89 commit 24eb461
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 24eb461

Please sign in to comment.