Skip to content

Commit

Permalink
[]byte should not be expanded by In
Browse files Browse the repository at this point in the history
[]byte is one of the driver.Value types, and should therefore not be expanded by `In`.
  • Loading branch information
npiganeau authored Jul 18, 2017
1 parent d9bd385 commit f9cd482
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f9cd482

Please sign in to comment.