mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
Merge pull request #126 from repnop/bitfiddling-strikes-back
Fix null bitmap bytes being cleared
This commit is contained in:
commit
fc610375e8
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user