This commit is contained in:
Jaremy Creechley 2023-09-20 23:50:57 -07:00
parent bab5cb989c
commit 6745c29efd
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300

View File

@ -52,7 +52,8 @@ proc bindParam(
# 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 private copy."
sqlite3_bind_blob(s, n.cint, unsafeAddr val[0], val.len.cint, SQLITE_TRANSIENT)
var val = val
sqlite3_bind_blob(s, n.cint, addr val[0], val.len.cint, SQLITE_TRANSIENT)
else:
sqlite3_bind_null(s, n.cint)
elif val is int32: