mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-11 21:49:13 +00:00
Tests.
This commit is contained in:
@@ -56,6 +56,8 @@ func (seriesTable) BestIndex(idx *sqlite3.IndexInfo) error {
|
||||
}
|
||||
}
|
||||
}
|
||||
idx.IdxNum = 1
|
||||
idx.IdxStr = "idx"
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -71,6 +73,9 @@ type seriesCursor struct {
|
||||
}
|
||||
|
||||
func (cur *seriesCursor) Filter(idxNum int, idxStr string, arg ...sqlite3.Value) error {
|
||||
if idxNum != 1 || idxStr != "idx" {
|
||||
return nil
|
||||
}
|
||||
cur.start = 0
|
||||
cur.stop = 1000
|
||||
cur.step = 1
|
||||
|
||||
Reference in New Issue
Block a user