Skip to content

Commit

Permalink
Merge branch 'GoWebProd-patch-1' into issue-655_json-rawmessage-panic
Browse files Browse the repository at this point in the history
  • Loading branch information
xiam committed Jul 4, 2022
2 parents c7cb340 + 5ca6eb3 commit 9db0e0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/sqlbuilder/convert.go
Expand Up @@ -57,7 +57,7 @@ func toInterfaceArguments(value interface{}) (args []interface{}, isSlice bool)

// Byte slice gets transformed into a string.
if v.Type().Elem().Kind() == reflect.Uint8 {
return []interface{}{string(value.([]byte))}, false
return []interface{}{string(v.Bytes())}, false
}

total = v.Len()
Expand Down

0 comments on commit 9db0e0f

Please sign in to comment.