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

Issue Type: Bug Created: 2012-03-03T14:22:49.000+0000 Last Updated: 2012-05-09T23:15:04.000+0000 Status: Resolved Fix version(s): Reporter: Hasan H. Gürsoy (hhgag) Assignee: Ralph Schindler (ralph) Tags: - Zend\Db

Related issues: Attachments:



Line: 193 $dsn .= $database;

should be

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

see also:…


Posted by Rob Allen (rob) on 2012-03-03T16:36:25.000+0000

I have a fix for this one here:…

Posted by Hasan H. Gürsoy (hhgag) on 2012-03-07T09:34:26.000+0000

Issue has been fixed with:… Thnx Rob

Posted by Ralph Schindler (ralph) on 2012-03-14T14:01:08.000+0000

Fixed in master

Posted by Hasan H. Gürsoy (hhgag) on 2012-04-04T09:15:25.000+0000

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 . ';' : '';

Posted by Hasan H. Gürsoy (hhgag) on 2012-04-13T16:46:53.000+0000

I've created a PR:

Posted by Maks 3w (maks3w) on 2012-05-05T13:44:54.000+0000

Finally the fix will be merged with

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.