Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>A few things:</p> <p>Where is your databasePath pointing? Be sure it is pointing to the documents path in the bundle, and not an external db in the project directly. Also, ensure you put the step statement correctly. </p> <pre><code>+(void)updateContact:(Contact *)c withOriginalFirst:(NSString *)originalFirst originalLast:(NSString *)originalLast originalBriefDescription:(NSString *)originalBriefDescription { sqlite3 *database; if(sqlite3_open([databasePath UTF8String], &amp;database) == SQLITE_OK) { NSString *cmd = [NSString stringWithFormat:@"update contacts set first='%@', last='%@', briefDescription='%@' where first='%@' and last='%@' and briefDescription='%@';", [c first],[c last],[c briefDescription],originalFirst,originalLast,originalBriefDescription]; const char * sql = [cmd UTF8String]; sqlite3_stmt *compiledStatement; if(sqlite3_prepare_v2(database, sql, -1, &amp;compiledStatement, NULL) == SQLITE_OK) { sqlite3_step(compiledStatement); // Here is the added step. NSLog(@"updateContact SUCCESS - executed command %@",cmd); } else { NSLog(@"updateContact FAILED - failed to execute command %@",cmd); } sqlite3_finalize(compiledStatement); } else { NSLog(@"pdateContact FAILED - failed to open database"); } sqlite3_close(database); NSLog(@"After update, contacts = %@",[SQLMaster getContactsFromDatabase]); } </code></pre> <p>Also, I see from the line [SQLMaster getContactsFromDatabase] that you are calling other database methods. Be sure that sqlite3_finalize is being reached on all of these database calls, or the database may not release the busy handler. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload