We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b5d5e0 commit 960d801Copy full SHA for 960d801
go/sql/types.go
@@ -52,9 +52,10 @@ func (this *Column) convertArg(arg interface{}) interface{} {
52
}
53
54
if this.Type == BinaryColumnType {
55
- size := len([]byte(arg.(string)))
+ arg2Bytes := []byte(arg.(string))
56
+ size := len(arg2Bytes)
57
if uint(size) < this.BinaryOctetLength {
- buf := bytes.NewBuffer([]byte(arg.(string)))
58
+ buf := bytes.NewBuffer(arg2Bytes)
59
for i := uint(0); i < (this.BinaryOctetLength - uint(size)); i++ {
60
buf.Write([]byte{0})
61
0 commit comments