You've already forked go-sqlmock
mirror of
https://github.com/DATA-DOG/go-sqlmock.git
synced 2025-06-16 23:57:35 +02:00
tests/NullInt: fix Value() to return a valid driver.Value
Value must return int64, not int.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user