зеркало из https://github.com/github/vitess-gh.git
Merge pull request #6249 from planetscale/jacques_6240
Fix issue #6240. PR #6130 did not take the header length offset into
This commit is contained in:
Коммит
e13de6f450
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче