1
0
mirror of https://github.com/zhashkevych/go-sqlxmock.git synced 2025-11-29 21:57:41 +02:00

add bool type to query arg matcher

This commit is contained in:
Konrad Mrozek
2016-01-26 15:19:23 +01:00
parent f55ca83ba0
commit 4a802e4278
2 changed files with 33 additions and 0 deletions

View File

@@ -358,6 +358,10 @@ func (e *queryBasedExpectation) argsMatches(args []driver.Value) bool {
if vi.String() != ai.String() {
return false
}
case reflect.Bool:
if vi.Bool() != ai.Bool() {
return false
}
default:
// compare types like time.Time based on type only
if vi.Kind() != ai.Kind() {