Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sqlite3_opt_vtable.go
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,9 @@ func goVUpdate(pVTab unsafe.Pointer, argc C.int, argv **C.sqlite3_value, pRowid
}

case argc > 1:
err = v.Update(vals[1], vals[2:])
// Per the xUpdate contract argv[0] identifies the row being
// updated while argv[1] is its (possibly changed) new rowid.
err = v.Update(vals[0], vals[2:])
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
}
}

Expand Down
Loading