From 737dd038c521a92f3c30c993ecf0d067b21f42dc Mon Sep 17 00:00:00 2001 From: Wesley Norris Date: Mon, 9 Mar 2020 20:31:49 -0400 Subject: [PATCH] Fix null bitmap being cleared --- sqlx-core/src/mysql/arguments.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlx-core/src/mysql/arguments.rs b/sqlx-core/src/mysql/arguments.rs index ca873c4e85..c365b80590 100644 --- a/sqlx-core/src/mysql/arguments.rs +++ b/sqlx-core/src/mysql/arguments.rs @@ -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; } } }