Skip to content

Commit 327ae5d

Browse files
author
Benjamin Rupp
committed
Fix for mocking Exec with custom []string datatype
1 parent 6099e2f commit 327ae5d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

expectations_go18.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ package sqlmock
44

55
import (
66
"database/sql"
7-
"database/sql/driver"
87
"fmt"
98
"reflect"
109
)
@@ -54,10 +53,6 @@ func (e *queryBasedExpectation) argsMatches(args []namedValue) error {
5453
return fmt.Errorf("could not convert %d argument %T - %+v to driver value: %s", k, e.args[k], e.args[k], err)
5554
}
5655

57-
if !driver.IsValue(darg) {
58-
return fmt.Errorf("argument %d: non-subset type %T returned from Value", k, darg)
59-
}
60-
6156
if !reflect.DeepEqual(darg, v.Value) {
6257
return fmt.Errorf("argument %d expected [%T - %+v] does not match actual [%T - %+v]", k, darg, darg, v.Value, v.Value)
6358
}

0 commit comments

Comments
 (0)