mirror of
https://github.com/DATA-DOG/go-sqlmock.git
synced 2025-06-04 23:17:28 +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 {
|
if !ni.Valid {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
return ni.Integer, nil
|
return int64(ni.Integer), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Satisfy sql.Scanner interface
|
// Satisfy sql.Scanner interface
|
||||||
|
Loading…
x
Reference in New Issue
Block a user