Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.11.5

Bug #4193 sqlite dsn causes invalid _database
Submitted: 2005-04-20 22:18 UTC
From: randy at rcs-comp dot com Assigned: alan_k
Status: Closed Package: DB_DataObject
PHP Version: 5.0.2 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2005-04-20 22:18 UTC] randy at rcs-comp dot com
Description: ------------ I was getting errors in the generator because the _database value was the full path of the sqlite database. That meant that line 236 of generator.php was creating a bade $file value. I changed line 107 to this: $t->_database = is_file($databasename) ? basename( $databasename) : $databasename; Not sure about other implications with this change. There is a similiar problem in dataObject.php in the _connect method when _database gets assigned a value. Reproduce code: --------------- Connect to a sqlite database and run the generator Expected result: ---------------- $file = c:/htdocs/ocfair2/configuration/classes/db/ocfair.db.ini Actual result: -------------- $file = c:/htdocs/ocfair2/configuration/classes/db/c:/htdocs/ocfair2/configuration/db/ocfair.db.ini

Comments

 [2005-06-04 02:59 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!