Commit 920b70eb authored by DanmeiChen's avatar DanmeiChen

fix bad zrtp cache in android

parent a89b2ddd
Pipeline #374 passed with stage
in 0 seconds
......@@ -693,7 +693,7 @@ int bzrtp_cache_write_active(void *dbPointer, int zuid, const char *tableName, c
ret = sqlite3_step(sqlStmtActive);
sqlite3_finalize(sqlStmtActive);
/* set to 1 the active flag four current row */
stmt = sqlite3_mprintf("UPDATE ziduri SET active=1 WHERE zuid=? LIMIT 1;");
stmt = sqlite3_mprintf("UPDATE ziduri SET active=1 WHERE zuid=?;");
ret = sqlite3_prepare_v2(db, stmt, -1, &sqlStmtActive, NULL);
sqlite3_free(stmt);
if (ret != SQLITE_OK) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment