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

View File

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