mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-08 08:33:10 +00:00
key batch
This commit is contained in:
parent
398342be76
commit
9243b6b976
@ -76,7 +76,7 @@ proc bindParam(
|
|||||||
# to the return from sqlite3_bind_*(). The object and pointer to it must
|
# to the return from sqlite3_bind_*(). The object and pointer to it must
|
||||||
# remain valid until then. SQLite will then manage the lifetime of its
|
# remain valid until then. SQLite will then manage the lifetime of its
|
||||||
# private copy."
|
# private copy."
|
||||||
sqlite3_bind_text(s, n.cint, val.toCString(), -1.cint, SQLITE_TRANSIENT)
|
sqlite3_bind_text(s, n.cint, val.toCString(), val.data.len().cint, SQLITE_TRANSIENT)
|
||||||
else:
|
else:
|
||||||
{.fatal: "Please add support for the '" & $typeof(val) & "' type".}
|
{.fatal: "Please add support for the '" & $typeof(val) & "' type".}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user