Identify updated row by argv 0 in goVUpdate

This commit is contained in:
Yasuhiro Matsumoto
2026-07-29 09:01:10 +09:00
parent 0cfec60306
commit 1a1bc9e778

View File

@@ -608,7 +608,9 @@ func goVUpdate(pVTab unsafe.Pointer, argc C.int, argv **C.sqlite3_value, pRowid
} }
case argc > 1: 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:])
} }
} }