diff --git a/migration_test.go b/migration_test.go index 3f3a5c8f..6c10f62e 100644 --- a/migration_test.go +++ b/migration_test.go @@ -139,6 +139,11 @@ func (role Role) IsAdmin() bool { type Num int64 +func (i *Num) Value() (driver.Value, error) { + // guaranteed ok + return int64(*i), nil +} + func (i *Num) Scan(src interface{}) error { switch s := src.(type) { case []byte: