diff --git a/datastore/sql/sqliteutils.nim b/datastore/sql/sqliteutils.nim index a235eb6..f994f6c 100644 --- a/datastore/sql/sqliteutils.nim +++ b/datastore/sql/sqliteutils.nim @@ -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: