Closed skaggmannen closed 2 months ago
master
v4.3.1
go version
go version go1.23.0 darwin/arm64
I tried using the x/memorydb driver to speed up my tests, but ran into trouble with queries that checks for the non-existance of a field.
x/memorydb
Given a document with the following structure:
{ "_id": "some-doc-id", "_rev": "some-doc-rev", "foo": "bar" }
The following query should match the document:
{ "selector": { "baz": { "$exists": false } } }
That the document was matched and returned when calling Find().
Find()
The matching fails in fieldNode.Match() before it even reaches the $exists condition (selector.go:134):
fieldNode.Match()
$exists
val, ok := m[f.field] if !ok { return false } return f.cond.Match(val)
Bug Report Checklist (remove this template if submitting a feature request)
master
.v4.3.1
go version
) -- Kivik 3.x supports Go 1.13 and later. Kivik 4.x requires Go 1.17 or later.go version go1.23.0 darwin/arm64
I tried using the
x/memorydb
driver to speed up my tests, but ran into trouble with queries that checks for the non-existance of a field.Given a document with the following structure:
The following query should match the document:
That the document was matched and returned when calling
Find()
.The matching fails in
fieldNode.Match()
before it even reaches the$exists
condition (selector.go:134):