From f9cd48259a9a25bda122524fb3fc015f74e8e8ba Mon Sep 17 00:00:00 2001 From: Nicolas PIGANEAU Date: Tue, 18 Jul 2017 10:43:31 +0200 Subject: [PATCH] []byte should not be expanded by In []byte is one of the driver.Value types, and should therefore not be expanded by `In`. --- bind.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bind.go b/bind.go index 10f7bdf8..57e862c5 100644 --- a/bind.go +++ b/bind.go @@ -113,7 +113,7 @@ func In(query string, args ...interface{}) (string, []interface{}, error) { v := reflect.ValueOf(arg) t := reflectx.Deref(v.Type()) - if t.Kind() == reflect.Slice { + if t.Kind() == reflect.Slice && t != reflect.TypeOf([]byte{}) { meta[i].length = v.Len() meta[i].v = v