From 15b04dc7702c49ef07f3237e5e54106c583c1847 Mon Sep 17 00:00:00 2001 From: Andrey Pshenkin Date: Thu, 5 Sep 2024 14:16:27 +0100 Subject: [PATCH] Update type for blob to be byte array, instead of sql.RawBytes --- sqlite3_type.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlite3_type.go b/sqlite3_type.go index 20537a0..42832ba 100644 --- a/sqlite3_type.go +++ b/sqlite3_type.go @@ -64,7 +64,7 @@ func scanType(cdt string) reflect.Type { case SQLITE_TEXT: return reflect.TypeOf(sql.NullString{}) case SQLITE_BLOB: - return reflect.TypeOf(sql.RawBytes{}) + return reflect.SliceOf(reflect.TypeOf(byte(0))) case SQLITE_REAL: return reflect.TypeOf(sql.NullFloat64{}) case SQLITE_NUMERIC: