Skip to content

Commit

Permalink
Remove omit constraint in xBestIndex of Vtab
Browse files Browse the repository at this point in the history
  • Loading branch information
julien040 committed Apr 9, 2024
1 parent 18cdded commit 16e3b30
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/mattn/go-sqlite3
module github.com/julien040/go-sqlite3-anyquery

go 1.19

Expand Down
Binary file added oryxBuildBinary
Binary file not shown.
2 changes: 1 addition & 1 deletion sqlite3_opt_vtable.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ func goVBestIndex(pVTab unsafe.Pointer, icp unsafe.Pointer) *C.char {
for i := range slice {
if res.Used[i] {
slice[i].argvIndex = C.int(index)
slice[i].omit = C.uchar(1)
slice[i].omit = C.uchar(0) // We don't want to omit this constraint
index++
}
}
Expand Down

0 comments on commit 16e3b30

Please sign in to comment.