Permalink
Browse files

Merge pull request #159 from terokaisti/patch-2

Invoking propel:database:create throws a PDO connection error
  • Loading branch information...
2 parents bd4c79d + b4475d2 commit 5a764c6181c36fd8fb8f22280cfd21b3936c2a7e @willdurand willdurand committed Jun 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Command/DatabaseCreateCommand.php
@@ -82,8 +82,8 @@ private function getTemporaryConfiguration($name, $config)
$dbName = $this->parseDbName($config['connection']['dsn']);
$config['connection']['dsn'] = preg_replace(
- '#dbname='.$dbName.'#',
- 'dbname='.strtolower($config['adapter']),
+ '#dbname='.$dbName.';#',
+ '',
$config['connection']['dsn']
);

0 comments on commit 5a764c6

Please sign in to comment.