¡@

Home 

2014/10/15 ¤U¤È 10:13:12

iphone Programming Glossary: recorddict

Database is locked in Sqlite

http://stackoverflow.com/questions/5658565/database-is-locked-in-sqlite

the open call failed close the database connection to release all the memory. void addRecord NSMutableDictionary recordDict if sqlite3_close database NSLog @ Closed NSArray paths NSSearchPathForDirectoriesInDomains NSDocumentDirectory NSUserDomainMask.. SQLITE_OK NSAssert1 0 @ Error while creating add statement. ' s' sqlite3_errmsg database sqlite3_bind_text addStmt 1 recordDict objectForKey @ ProductName UTF8String 1 SQLITE_TRANSIENT sqlite3_bind_text addStmt 2 recordDict objectForKey @ ProductBarcode.. addStmt 1 recordDict objectForKey @ ProductName UTF8String 1 SQLITE_TRANSIENT sqlite3_bind_text addStmt 2 recordDict objectForKey @ ProductBarcode UTF8String 1 SQLITE_TRANSIENT sqlite3_bind_text addStmt 3 recordDict objectForKey @ ProductImage..