query fixes

This commit is contained in:
Jaremy Creechley 2023-09-25 20:19:33 -07:00
parent 206751a090
commit 2de2650fb5
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
2 changed files with 2 additions and 3 deletions

View File

@ -126,7 +126,6 @@ proc query*[K,V](
if query.offset != 0:
queryStr &= QueryStmtOffset
echo "QUERY_STR: ", queryStr
let
queryStmt = ? QueryStmt.prepare(self.db.env, queryStr)

View File

@ -277,14 +277,14 @@ suite "queryTests":
var
qr = ds.query(q)
echo "RES: ", qr.repr
# echo "RES: ", qr.repr
var
handle = ds.query(q).tryGet
let
res = handle.iter().toSeq().mapIt(it.tryGet())
echo "RES: ", res.mapIt(it.key)
# echo "RES: ", res.mapIt(it.key)
check:
res.len == 10