mirror of
https://git.sr.ht/~cismonx/bookmarkfs
synced 2025-06-07 19:58:50 +00:00
backend_firefox: set bookmark initial sync status
New bookmarks should be assigned SYNC_STATUS_NEW (value 1).
This commit is contained in:
parent
0b317c2727
commit
3e6bcb8b4f
1 changed files with 2 additions and 2 deletions
|
@ -735,9 +735,9 @@ mozbm_insert (
|
|||
sqlite3_stmt **stmt_ptr = &ctx->stmts[STMT_MOZBM_INSERT];
|
||||
char const *sql =
|
||||
"INSERT INTO `moz_bookmarks` (`parent`, `position`, `title`, "
|
||||
"`dateAdded`, `lastModified`, `type`, `fk`, `guid`) "
|
||||
"`dateAdded`, `lastModified`, `type`, `fk`, `guid`, `syncStatus`) "
|
||||
"VALUES (?1, safeincr((" MOZBM_MAXPOS("?1") ")), ?2, ?3, ?3, "
|
||||
"?4, nullif(?5, -1), ?6)";
|
||||
"?4, nullif(?5, -1), ?6, 1)";
|
||||
|
||||
int status;
|
||||
DO_QUERY(ctx, stmt_ptr, sql, NULL, NULL, status, prepare:, ,
|
||||
|
|
Loading…
Add table
Reference in a new issue