Closed israel-lugo closed 2 years ago
stmt.BindBytes(col, make([]byte, 0)) now stores an empty blob, instead of a NULL.
stmt.BindBytes(col, make([]byte, 0))
NULL
stmt.BindBytes(col, nil) will still store a NULL. This is intentional, to mimic sqlite3_bind_blob's behaviour with NULL pointers.
stmt.BindBytes(col, nil)
sqlite3_bind_blob
This fixes #117.
@AdamSLevy Could you please take a look, when possible? This is for #117.
stmt.BindBytes(col, make([]byte, 0))
now stores an empty blob, instead of aNULL
.stmt.BindBytes(col, nil)
will still store aNULL
. This is intentional, to mimicsqlite3_bind_blob
's behaviour withNULL
pointers.This fixes #117.