You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/rs/core/src/changes_vtab_write.rs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -237,7 +237,7 @@ fn set_winner_clock(
237
237
{pk_bind_list},
238
238
?,
239
239
?,
240
-
MAX(crsql_next_db_version(), ?),
240
+
crsql_next_db_version(?),
241
241
?,
242
242
?
243
243
) RETURNING _rowid_",
@@ -373,7 +373,7 @@ fn zero_clocks_on_resurrect(
373
373
let stmt_key = get_cache_key(CachedStmtType::ZeroClocksOnResurrect, table_name,None)?;
374
374
let zero_stmt = get_cached_stmt_rt_wt(db, ext_data, stmt_key, || {
375
375
Ok(format!(
376
-
"UPDATE \"{table_name}__crsql_clock\" SET __crsql_col_version = 0, __crsql_db_version = MAX(crsql_next_db_version(), ?) WHERE {pk_where_list} AND __crsql_col_name IS NOT '{sentinel}'",
376
+
"UPDATE \"{table_name}__crsql_clock\" SET __crsql_col_version = 0, __crsql_db_version = crsql_next_db_version(?) WHERE {pk_where_list} AND __crsql_col_name IS NOT '{sentinel}'",
0 commit comments