Update type for blob to be byte array, instead of sql.RawBytes

This commit is contained in:
Andrey Pshenkin 2024-09-05 14:16:27 +01:00 committed by GitHub
parent 846fea6c14
commit 15b04dc770
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ func scanType(cdt string) reflect.Type {
case SQLITE_TEXT: case SQLITE_TEXT:
return reflect.TypeOf(sql.NullString{}) return reflect.TypeOf(sql.NullString{})
case SQLITE_BLOB: case SQLITE_BLOB:
return reflect.TypeOf(sql.RawBytes{}) return reflect.SliceOf(reflect.TypeOf(byte(0)))
case SQLITE_REAL: case SQLITE_REAL:
return reflect.TypeOf(sql.NullFloat64{}) return reflect.TypeOf(sql.NullFloat64{})
case SQLITE_NUMERIC: case SQLITE_NUMERIC: