From edc3bb69551dcfff02651f083b21f3366ea2f5ab Mon Sep 17 00:00:00 2001 From: Andrew Zhang <108556795+andrzh@users.noreply.github.com> Date: Wed, 5 Apr 2023 19:46:26 -0700 Subject: [PATCH] Fix virtual table example. (#1149) --- _example/vtable/vtable.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_example/vtable/vtable.go b/_example/vtable/vtable.go index dd457ea..10d12a9 100644 --- a/_example/vtable/vtable.go +++ b/_example/vtable/vtable.go @@ -62,7 +62,7 @@ func (v *ghRepoTable) Open() (sqlite3.VTabCursor, error) { return &ghRepoCursor{0, repos}, nil } -func (v *ghRepoTable) BestIndex(cst []sqlite3.InfoConstraint, ob []sqlite3.InfoOrderBy) (*sqlite3.IndexResult, error) { +func (v *ghRepoTable) BestIndex(csts []sqlite3.InfoConstraint, ob []sqlite3.InfoOrderBy) (*sqlite3.IndexResult, error) { used := make([]bool, len(csts)) return &sqlite3.IndexResult{ IdxNum: 0,