• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SQLite3 with 1.6.1


I'm trying to use an sqlite3 db with codeigniter 1.6.1 on PHP5.
I've followed the PDO guide (http://codeigniter.com/wiki/PDO_SQLite3/).

It doesn't seem to be enough though :-(
I've already added the db_set_charset function from sqlite_driver.php to pdo_driver.php to be able to connect to the db.

When using active records to retrieve some data I get the following:
Fatal error: Call to undefined method CI_DB_pdo_driver::_protect_identifiers() in /mnt/www/verjaardag.eemco.nl/system/database/DB_active_rec.php on line 289

To solve this I copied _protect_identifiers() from sqlite_driver.php to pdo_driver.php.

This results to the next error:
Fatal error: Call to undefined method CI_DB_pdo_driver::_from_tables() in /mnt/www/verjaardag.eemco.nl/system/database/DB_active_rec.php on line 1466

To solve this I copies _from_tables from sqlite_driver.php to pdo_driver.php.

Since I'm just starting to use CodeIgniter, sqlite3 and have been away from PHP from a long time I don't know if I'm doing the right thig but at least it seems to be working (a bit).

Now on to hunt for the next bug in my php script.

Hey thanks for this - it helped me heaps. I am new to CodeIgniter and PHP in general, but have coded for too many years in the dark .Net world of complexity and obscurity. Glad I have found this fantastic framework...

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.