Fix Scan int32, uint32 (#3801)

This commit is contained in:
Dakatan 2020-11-30 11:09:08 +09:00 committed by GitHub
parent 0f77500917
commit acedbb8310
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ func Scan(rows *sql.Rows, db *DB, initialized bool) {
scanIntoMap(mapValue, values, columns)
*dest = append(*dest, mapValue)
}
case *int, *int64, *uint, *uint64, *float32, *float64, *string, *time.Time:
case *int, *int32, *int64, *uint, *uint32, *uint64, *float32, *float64, *string, *time.Time:
for initialized || rows.Next() {
initialized = false
db.RowsAffected++