IOS-1351 merge latest default in IOS-1351
authorDirk Zimmermann <dirk@pep-project.org>
Mon, 01 Oct 2018 08:45:13 +0200
branchIOS-1351
changeset 2962b49409e38f18
parent 2961 d30983446c45
parent 2960 2e282c20ec11
child 3122 b6ee3e61e64c
IOS-1351 merge latest default in
     1.1 --- a/src/pEpEngine.c	Sat Sep 29 15:48:44 2018 +0200
     1.2 +++ b/src/pEpEngine.c	Mon Oct 01 08:45:13 2018 +0200
     1.3 @@ -2834,6 +2834,12 @@
     1.4      sqlite3_bind_text(session->replace_userid, 2, old_uid, -1,
     1.5              SQLITE_STATIC);
     1.6      result = sqlite3_step(session->replace_userid);
     1.7 +#ifndef NDEBUG
     1.8 +    if (result) {
     1.9 +        const char *errmsg = sqlite3_errmsg(session->db);
    1.10 +        log_event(session, "SQLite3 error", "replace_userid", errmsg, NULL);
    1.11 +    }
    1.12 +#endif // !NDEBUG
    1.13      sqlite3_reset(session->replace_userid);
    1.14      if (result != SQLITE_DONE)
    1.15          return PEP_CANNOT_SET_PERSON; // May need clearer retval