Codeigniter insert_batch error Codeigniter insert_batch error codeigniter codeigniter

Codeigniter insert_batch error


i have posted it on github as a CodeIgniter 2.1.4 issue and as i found out,"SQLite3 is not supported by CI 2.1.4 and the PDO driver in 2.1.x is experimental, which means that errors are expected.Full SQLite3 support via the 'sqlite3' and 'pdo/sqlite' drivers is available in 3.0-dev"- https://github.com/EllisLab/CodeIgniter/issues/2834#issuecomment-32838494


Because of

Fatal error: Call to a member function execute() on a non-object in E:\Repository\cashy-support-app2\system\database\drivers\pdo\pdo_driver.php on line 193.

I am going to guess that your array does not hold the keys for the columns in the database.

http://ellislab.com/codeigniter/user-guide/database/active_record.html#insert

It is hard to pin-point the exact problem without seeing more of the code.


I think it's because sqlite doesn't support this kind of query, not sure if codeigniter handled this issue or not.