[sqlite] Corrupted database files

2014-06-05 Thread Lasse Jansen
Hi, we have a Mac app that uses CoreData which internally uses SQLite. Some of the queries are not expressible within CoreData, so we send them manually using the sqlite library that comes with Mac OS X. Now some of our users have reported that their database file got corrupted and after some

Re: [sqlite] Corrupted database files

2014-06-05 Thread Lasse Jansen
Unfortunately CoreData is closed source and is distributed as part of the Mac OS X SDK so there is no way to update it. 2014-06-05 13:33 GMT+02:00 RSmith rsm...@rsweb.co.za: On 2014/06/05 13:21, Lasse Jansen wrote: Hi, we have a Mac app that uses CoreData which internally uses SQLite

Re: [sqlite] Corrupted database files

2014-06-05 Thread Lasse Jansen
Thanks for the suggestion, I think I'll try this. I probably need to detect the kind of error and use some retry-mechanism ... 2014-06-05 13:35 GMT+02:00 Richard Hipp d...@sqlite.org: On Thu, Jun 5, 2014 at 7:21 AM, Lasse Jansen la...@lasselog.com wrote: Hi, we have a Mac app that uses

Re: [sqlite] Corrupted database files

2014-06-05 Thread Lasse Jansen
Thanks, spawning another process is a good idea. Filing a bug with Apple is probably not going to work, they don't encourage accessing a CoreData managed database without going through CoreData. 2014-06-05 13:49 GMT+02:00 David Empson demp...@emptech.co.nz: On 5/06/2014, at 11:21 pm, Lasse