From 790d0ded8bb129218cf9b508ab1c38aaa1049b23 Mon Sep 17 00:00:00 2001 From: Ryan Breen Date: Tue, 19 Sep 2017 15:48:05 -0400 Subject: [PATCH] Bytes argument properly bind blob, not text (#28) --- src/sqlite3/lib_sqlite3.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sqlite3/lib_sqlite3.cr b/src/sqlite3/lib_sqlite3.cr index f904772..97525a4 100644 --- a/src/sqlite3/lib_sqlite3.cr +++ b/src/sqlite3/lib_sqlite3.cr @@ -36,7 +36,7 @@ lib LibSQLite3 fun bind_int = sqlite3_bind_int(stmt : Statement, idx : Int32, value : Int32) : Int32 fun bind_int64 = sqlite3_bind_int64(stmt : Statement, idx : Int32, value : Int64) : Int32 fun bind_text = sqlite3_bind_text(stmt : Statement, idx : Int32, value : UInt8*, bytes : Int32, destructor : Void* ->) : Int32 - fun bind_blob = sqlite3_bind_text(stmt : Statement, idx : Int32, value : UInt8*, bytes : Int32, destructor : Void* ->) : Int32 + fun bind_blob = sqlite3_bind_blob(stmt : Statement, idx : Int32, value : UInt8*, bytes : Int32, destructor : Void* ->) : Int32 fun bind_null = sqlite3_bind_null(stmt : Statement, idx : Int32) : Int32 fun bind_double = sqlite3_bind_double(stmt : Statement, idx : Int32, value : Float64) : Int32