You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Driver.php line 54:
Connection parameter `dbname` is required
As far as I can see vendor/doctrine/doctrine-bundle/Command/CreateDatabaseDoctrineCommand.php:86 unsets dbname to check whether db exists and connects without driver:
// Need to get rid of _every_ occurrence of dbname from connection configuration and we have already extracted all relevant info from url
unset($params['dbname'], $params['path'], $params['url']);
$tmpConnection = DriverManager::getConnection($params);
$tmpConnection->connect($input->getOption('shard'));
$shouldNotCreateDatabase = $ifNotExists && in_array($name, $tmpConnection->getSchemaManager()->listDatabases());
but \FOD\DBALClickHouse\Driver::connect does not let that.
if (! isset($params['dbname'])) {
thrownewClickHouseException('Connection parameter `dbname` is required');
}
The text was updated successfully, but these errors were encountered:
Also there is some problems with quoted identifiers.
Somehow double backticks replaces double-quotes.
Could not create database `metrics` for connection named clickhouse
An exception occurred while executing 'CREATE DATABASE ``metrics``':
Syntax error: failed at position 17: ``metrics``. Expected one of: identifier, IF NOT EXISTS
IN:CREATE DATABASE ``metrics``
Symfony 5.0.2
throws exception
As far as I can see
vendor/doctrine/doctrine-bundle/Command/CreateDatabaseDoctrineCommand.php:86
unsets dbname to check whether db exists and connects without driver:but
\FOD\DBALClickHouse\Driver::connect
does not let that.The text was updated successfully, but these errors were encountered: