ZF2-245: using pdo_sqlite, DB/Adapter/Pdo/Connection.php appends a ';' at the end of the specified dbname.
Description
Hi,
I am following Rob Allens 'getting started zf2' (http://akrabat.com/getting-started-with-zend-frameā¦) but want to use sqlite instead of the mysql adapter.
My module.config.php contains the following:
'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
to
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
Comments
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 https://github.com/zendframework/zf2/pull/934 a special code for SQLite was added