From 9039e36cfcff3f766a77e640d287597543006405 Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Sun, 14 Jun 2020 19:18:42 +0800 Subject: [PATCH] Allow scan into float close #1373 --- scan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scan.go b/scan.go index 1f0aacd0..2d227ec2 100644 --- a/scan.go +++ b/scan.go @@ -62,7 +62,7 @@ func Scan(rows *sql.Rows, db *DB, initialized bool) { *dest = append(*dest, mapValue) } - case *int, *int64, *uint, *uint64: + case *int, *int64, *uint, *uint64, *float32, *float64: for initialized || rows.Next() { initialized = false db.RowsAffected++