mirror of https://github.com/mattn/go-sqlite3.git
Update type for blob to be byte array, instead of sql.RawBytes
This commit is contained in:
parent
846fea6c14
commit
15b04dc770
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue