Skip to content

Commit

Permalink
Merge pull request #6249 from planetscale/jacques_6240
Browse files Browse the repository at this point in the history
Fix issue #6240.  PR #6130 did not take the header length offset into
  • Loading branch information
sougou authored Jun 8, 2020
2 parents 8f6c690 + 28b1337 commit e13de6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/mysql/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ func (c *Conn) writeBinaryRow(fields []*querypb.Field, row []sqltypes.Value) err

for i, val := range row {
if val.IsNull() {
bytePos := (i+2)/8 + 1
bytePos := (i+2)/8 + 1 + packetHeaderSize
bitPos := (i + 2) % 8
data[bytePos] |= 1 << uint(bitPos)
} else {
Expand Down

0 comments on commit e13de6f

Please sign in to comment.