Skip to content

Commit f9cd482

Browse files
authored
[]byte should not be expanded by In
[]byte is one of the driver.Value types, and should therefore not be expanded by `In`.
1 parent d9bd385 commit f9cd482

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bind.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func In(query string, args ...interface{}) (string, []interface{}, error) {
113113
v := reflect.ValueOf(arg)
114114
t := reflectx.Deref(v.Type())
115115

116-
if t.Kind() == reflect.Slice {
116+
if t.Kind() == reflect.Slice && t != reflect.TypeOf([]byte{}) {
117117
meta[i].length = v.Len()
118118
meta[i].v = v
119119

0 commit comments

Comments
 (0)