mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 16:24:37 +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:
7
vendor/github.com/mjl-/bstore/export.go
generated
vendored
7
vendor/github.com/mjl-/bstore/export.go
generated
vendored
@ -329,8 +329,7 @@ func (ft fieldType) parseValue(p *parser) any {
|
||||
if fm.Nonzero(i) {
|
||||
l = append(l, ft.ListElem.parseValue(p))
|
||||
} else {
|
||||
// Always add non-zero elements, or we would
|
||||
// change the number of elements in a list.
|
||||
// Always add zero elements, or we would change the number of elements in a list.
|
||||
l = append(l, ft.ListElem.zeroExportValue())
|
||||
}
|
||||
}
|
||||
@ -343,8 +342,8 @@ func (ft fieldType) parseValue(p *parser) any {
|
||||
if fm.Nonzero(i) {
|
||||
l[i] = ft.ListElem.parseValue(p)
|
||||
} else {
|
||||
// Always add non-zero elements, or we would
|
||||
// change the number of elements in a list.
|
||||
// Always add zero elements, or we would change the number of elements in the
|
||||
// array.
|
||||
l[i] = ft.ListElem.zeroExportValue()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user