How can I save data to sqlite with cake? 

I  try o use qlite with cake, when I call model->save() i got error.

/* There is no problem with model->findAll() */


-----------------
Warning: sqlite_query() [ function.sqlite-query]: database is locked in D:\www\sedi.sk\cake\libs\model\dbo\dbo_sqlite.php on line 128

Fatal error: Maximum execution time of 30 seconds exceeded in D:\www\sedi.sk\cake\libs\model\dbo\dbo_sqlite.php on line 128
2 queries took 1 msNr Query Error Affected Num. rows Took (ms)
1 SELECT name FROM sqlite_master WHERE type='table' ORDER BY name; 0 1
2 SELECT COUNT(*) AS count FROM category WHERE id='10' 0 0
-----------------------

here is my codes:


class DATABASE_CONFIG
{
var $default = array('driver' => 'sqlite',
'connect' => 'sqlite_open',
'database' => ' mysqlitedb3.php');
}




------------------------------



class Item extends AppModel
{
var $name = 'Item';
var $useTable = 'category';
}

----------

function save_test()
{
$data = ""> $data['Item'] = array ( 'id' => 10, 'name' => 'test');
$this->Item->save($data);
}


----------------------

 





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to