diff --git a/sqlite3.go b/sqlite3.go index ed2a9e2a..5b96f03a 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -1953,7 +1953,7 @@ func (s *SQLiteStmt) bind(args []driver.NamedValue) error { if len(v) == 0 { rv = C._sqlite3_bind_text(s.s, n, (*C.char)(unsafe.Pointer(&placeHolder[0])), C.int(0)) } else { - b := []byte(v) + b := *(*[]byte)(unsafe.Pointer(&v)) rv = C._sqlite3_bind_text(s.s, n, (*C.char)(unsafe.Pointer(&b[0])), C.int(len(b))) } case int64: