Merge pull request #159 from terokaisti/patch-2

Invoking propel:database:create throws a PDO connection error
This commit is contained in:
William Durand 2012-06-11 09:30:59 -07:00
commit 5a764c6181

View file

@ -82,8 +82,8 @@ class DatabaseCreateCommand extends AbstractCommand
$dbName = $this->parseDbName($config['connection']['dsn']);
$config['connection']['dsn'] = preg_replace(
'#dbname='.$dbName.'#',
'dbname='.strtolower($config['adapter']),
'#dbname='.$dbName.';#',
'',
$config['connection']['dsn']
);