Translate SQL NULL filter arguments to nil like goVUpdate

This commit is contained in:
Yasuhiro Matsumoto
2026-07-29 08:59:49 +09:00
parent 0cfec60306
commit c2ecdac1df

View File

@@ -514,7 +514,14 @@ func goVFilter(pCursor unsafe.Pointer, idxNum C.int, idxName *C.char, argc C.int
if err != nil {
return mPrintf("%s", err.Error())
}
vals = append(vals, conv.Interface())
// work around for SQLITE_NULL
x := conv.Interface()
if z, ok := x.([]byte); ok && z == nil {
x = nil
}
vals = append(vals, x)
}
err := vtc.vTabCursor.Filter(int(idxNum), C.GoString(idxName), vals)
if err != nil {