ZF2-189: DSN creation in Zend\Db\Adapter\Driver\Pdo\Connection

Description

Zend\Db\Adapter\Driver\Pdo\Connection

Line: 193 $dsn .= $database;

should be

$dsn .= 'dbname=' . $database;

see also: http://zend-framework-community.634137.n4.nabble.com/…

Comments

I have a fix for this one here: https://github.com/akrabat/zf2/…

Issue has been fixed with: https://github.com/zendframework/zf2/… Thnx Rob

Fixed in master

Hi Ralph,

fix has been removed with your last commit :D

connection.php Line: 206 $dsn .= (isset($hostname)) ? 'hostname=' . $hostname : ''; $dsn .= (isset($database)) ? 'dbname=' . $database : '';

has to be: $dsn .= (isset($hostname)) ? 'hostname=' . $hostname . ';' : ''; $dsn .= (isset($database)) ? 'dbname=' . $database . ';' : '';

Finally the fix will be merged with https://github.com/zendframework/zf2/pull/1134