Allow scan into float close #1373

This commit is contained in:
Jinzhu 2020-06-14 19:18:42 +08:00
parent 1fdc66710e
commit 9039e36cfc
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ func Scan(rows *sql.Rows, db *DB, initialized bool) {
*dest = append(*dest, mapValue) *dest = append(*dest, mapValue)
} }
case *int, *int64, *uint, *uint64: case *int, *int64, *uint, *uint64, *float32, *float64:
for initialized || rows.Next() { for initialized || rows.Next() {
initialized = false initialized = false
db.RowsAffected++ db.RowsAffected++