Skip to content

Commit

Permalink
Fix null bitmap being cleared
Browse files Browse the repository at this point in the history
  • Loading branch information
repnop committed Mar 10, 2020
1 parent 80f402b commit 737dd03
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 737dd03

Please sign in to comment.