Merge pull request #126 from repnop/bitfiddling-strikes-back

Fix null bitmap bytes being cleared
This commit is contained in:
Ryan Leckey
2020-03-10 15:33:04 -07:00
committed by GitHub

View File

@@ -45,7 +45,7 @@ impl Arguments for MySqlArguments {
self.null_bitmap.resize((index / 8) + 1, 0);
if let IsNull::Yes = value.encode_nullable(&mut self.params) {
self.null_bitmap[index / 8] &= (1 << index % 8) as u8;
self.null_bitmap[index / 8] |= (1 << index % 8) as u8;
}
}
}