Adding unit test for VTable Insert/Update/Delete

This commit is contained in:
Kenneth Shaw
2017-04-07 14:23:08 +07:00
parent f68bb95000
commit 18135fa650
2 changed files with 338 additions and 1 deletions

View File

@@ -537,7 +537,14 @@ func goVUpdate(pVTab unsafe.Pointer, argc C.int, argv **C.sqlite3_value, pRowid
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)
}
switch {