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:
parent
4f574cddfd
commit
f974ac3c0c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user