From 327ae5dcb6eb65b1ea7b92bf955ac80d90f5aaf5 Mon Sep 17 00:00:00 2001 From: Benjamin Rupp Date: Wed, 25 Sep 2019 09:13:06 -0400 Subject: [PATCH] Fix for mocking Exec with custom []string datatype --- expectations_go18.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/expectations_go18.go b/expectations_go18.go index 2d5ccba..6ee8adf 100644 --- a/expectations_go18.go +++ b/expectations_go18.go @@ -4,7 +4,6 @@ package sqlmock import ( "database/sql" - "database/sql/driver" "fmt" "reflect" ) @@ -54,10 +53,6 @@ func (e *queryBasedExpectation) argsMatches(args []namedValue) error { return fmt.Errorf("could not convert %d argument %T - %+v to driver value: %s", k, e.args[k], e.args[k], err) } - if !driver.IsValue(darg) { - return fmt.Errorf("argument %d: non-subset type %T returned from Value", k, darg) - } - if !reflect.DeepEqual(darg, v.Value) { return fmt.Errorf("argument %d expected [%T - %+v] does not match actual [%T - %+v]", k, darg, darg, v.Value, v.Value) }