Skip to content

Commit

Permalink
Merge pull request #126 from repnop/bitfiddling-strikes-back
Browse files Browse the repository at this point in the history
Fix null bitmap bytes being cleared
  • Loading branch information
mehcode authored Mar 10, 2020
2 parents 80f402b + 737dd03 commit fc61037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlx-core/src/mysql/arguments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

0 comments on commit fc61037

Please sign in to comment.