FMDB transaction

Posted by user142764 on Stack Overflow See other posts from Stack Overflow or by user142764
Published on 2009-07-27T11:36:04Z Indexed on 2010/03/08 17:51 UTC
Read the original article Hit count: 374

Filed under:
|
|

Hi !

I use FMDB to wrap SQLite in my app. I haven't found any docs about the use of methods begin, beginUpdates, commit, finalize, etc. I face some problems in my apps which i think are caused by the way i use transactions.

Here is what i tried :

[FMDB beginUpdates] - My insert statement - [FMDB commit] [FMDB finalize]

it crashes with this log :

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[FMDatabase<0xd705a0> finalize]: called when collecting not enabled'

Could you please give me an example of how you are using transactions, or point me to a doc ?

Thanks in advance, Vincent.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about fmdb