mirror of
https://github.com/mjl-/mox.git
synced 2025-07-15 06:54:35 +03:00
update to latest bstore, with a bugfix for queries with multiple orders that were partially handled by an index
causing returned order to be incorrect. was triggered by new code i'm working on.
This commit is contained in:
2
vendor/github.com/mjl-/bstore/register.go
generated
vendored
2
vendor/github.com/mjl-/bstore/register.go
generated
vendored
@ -561,7 +561,7 @@ func (db *DB) Register(ctx context.Context, typeValues ...any) error {
|
||||
parsePK(a, prev.buf[prev.pre:]) // Ignore error, nothing to do.
|
||||
parsePK(b, k.buf[k.pre:]) // Ignore error, nothing to do.
|
||||
var dup []any
|
||||
_, values, _ := idx.parseKey(k.buf, true)
|
||||
_, values, _ := idx.parseKey(k.buf, true, false)
|
||||
for i := range values {
|
||||
x := reflect.New(reflect.TypeOf(idx.Fields[i].Type.zeroKey())).Elem()
|
||||
parsePK(x, values[i]) // Ignore error, nothing to do.
|
||||
|
Reference in New Issue
Block a user