ZF2-245: using pdo_sqlite, DB/Adapter/Pdo/Connection.php appends a ';' at the end of the specified dbname.

Issue Type: Bug Created: 2012-03-30T20:36:03.000+0000 Last Updated: 2012-06-06T16:08:19.000+0000 Status: Resolved Fix version(s): Reporter: Julian Godesa (julian.godesa) Assignee: Ralph Schindler (ralph) Tags: - Zend\Db

  • Zend_Db

Related issues: Attachments:



I am following Rob Allens 'getting started zf2' (ā€¦) but want to use sqlite instead of the mysql adapter.

My module.config.php contains the following:

<pre class="highlight">
'Zend\Db\Adapter\Adapter' => array(
        'parameters' => array(
          'driver' => array(
            'driver' => 'Pdo_Sqlite',
            'database' => '../../data/db/feedback.db',

zf2 creates a new sqlite database file with the same name but appends a ';'.

if I change line 201 in file : Zend/DB/Adapter/Pdo/Connection.php

<pre class="highlight">

ZF2 picks up my own database file. and everything works fine. If I don't remove the ';' zf2 complains about the missing database.

any thoughts ? Am I specifying the database in a wrong way ?

thanks, Julian


Posted by Julian Godesa (julian.godesa) on 2012-03-30T20:37:51.000+0000

added link to url

Posted by Maks 3w (maks3w) on 2012-06-06T16:08:18.000+0000

Since a special code for SQLite was added

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.