From f974ac3c0c7a862ef0599fcf1d4985ed5bea4bc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Thu, 12 Jul 2018 11:49:33 +0200 Subject: [PATCH] tests/NullInt: fix Value() to return a valid driver.Value Value must return int64, not int. --- stubs_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs_test.go b/stubs_test.go index 724a2c7..71a8ce3 100644 --- a/stubs_test.go +++ b/stubs_test.go @@ -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