Skip to content

Commit 850a82b

Browse files
authored
Merge pull request #780 from luyui/fix-binary-resultset
fix: should use column index to set null bitmap when building binary resultset
2 parents f854680 + 1ff1876 commit 850a82b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql/resultset_helper.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ func BuildSimpleBinaryResultset(names []string, values [][]interface{}) (*Result
220220
}
221221
}
222222
if value == nil {
223-
nullBitmap[(i+2)/8] |= 1 << (uint(i+2) % 8)
223+
nullBitmap[(j+2)/8] |= 1 << (uint(j+2) % 8)
224224
continue
225225
}
226226

0 commit comments

Comments
 (0)