Loading module_test.go +1 −1 Original line number Diff line number Diff line Loading @@ -757,7 +757,7 @@ func (m *overflowIdxModule) Connect(ctx vtab.Context, args []string) (vtab.Table } func (t *overflowIdxTable) BestIndex(info *vtab.IndexInfo) error { // Force IdxNum to exceed int32 to trigger trampoline guard. info.IdxNum = math.MaxInt32 + 1 info.IdxNum = int64(math.MaxInt32) + 1 return nil } func (t *overflowIdxTable) Open() (vtab.Cursor, error) { return &overflowIdxCursor{}, nil } Loading vtab/vtab.go +1 −1 Original line number Diff line number Diff line Loading @@ -215,7 +215,7 @@ type IndexInfo struct { // integer (int32). Implementations must ensure IdxNum fits within the // int32 range; values outside of int32 will cause an error in the driver // to avoid silent truncation. IdxNum int IdxNum int64 IdxStr string // IdxFlags provides extra information about the chosen plan. // Set to IndexScanUnique to indicate the plan visits at most one row. Loading Loading
module_test.go +1 −1 Original line number Diff line number Diff line Loading @@ -757,7 +757,7 @@ func (m *overflowIdxModule) Connect(ctx vtab.Context, args []string) (vtab.Table } func (t *overflowIdxTable) BestIndex(info *vtab.IndexInfo) error { // Force IdxNum to exceed int32 to trigger trampoline guard. info.IdxNum = math.MaxInt32 + 1 info.IdxNum = int64(math.MaxInt32) + 1 return nil } func (t *overflowIdxTable) Open() (vtab.Cursor, error) { return &overflowIdxCursor{}, nil } Loading
vtab/vtab.go +1 −1 Original line number Diff line number Diff line Loading @@ -215,7 +215,7 @@ type IndexInfo struct { // integer (int32). Implementations must ensure IdxNum fits within the // int32 range; values outside of int32 will cause an error in the driver // to avoid silent truncation. IdxNum int IdxNum int64 IdxStr string // IdxFlags provides extra information about the chosen plan. // Set to IndexScanUnique to indicate the plan visits at most one row. Loading