1
0
mirror of https://github.com/zhashkevych/go-sqlxmock.git synced 2024-11-24 08:12:13 +02:00

tests/NullInt: fix Value() to return a valid driver.Value

Value must return int64, not int.
This commit is contained in:
Olivier Mengué 2018-07-12 11:49:33 +02:00
parent 4f574cddfd
commit f974ac3c0c

View File

@ -74,7 +74,7 @@ func (ni NullInt) Value() (driver.Value, error) {
if !ni.Valid {
return nil, nil
}
return ni.Integer, nil
return int64(ni.Integer), nil
}
// Satisfy sql.Scanner interface