1.0.9: Fix reading int values
Summary
This release fixes an issue when calling rows.Scan(&result)
with an int value. This failed for large values like 100000000 with the following error:
sql: Scan error on column index 0, name "COL": converting driver.Value type float64 ("1e+08") to a int64: invalid syntax
Please note that reading non-integer numbers like 1.1
into a int64
variable will still fail with the following error message:
sql: Scan error on column index 0, name "COL": converting driver.Value type string ("1.1") to a int64: invalid syntax
The release also now returns the correct error from rows.Err()
. Before, this only returned driver.ErrBadConn
.