Skip to content

Commit fd25a75

Browse files
Mike Cronceabonander
Mike Cronce
authored andcommitted
sqlx-core/src/mysql/protocol/statement/execute.rs: Execute::encode_with(): Encode a 1 for iteration-count instead of 0
1 parent 7eca0b9 commit fd25a75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlx-core/src/mysql/protocol/statement/execute.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ impl<'q> Encode<'_, Capabilities> for Execute<'q> {
1616
buf.push(0x17); // COM_STMT_EXECUTE
1717
buf.extend(&self.statement.to_le_bytes());
1818
buf.push(0); // NO_CURSOR
19-
buf.extend(&0_u32.to_le_bytes()); // iterations (always 1): int<4>
19+
buf.extend(&1_u32.to_le_bytes()); // iterations (always 1): int<4>
2020

2121
if !self.arguments.types.is_empty() {
2222
buf.extend(&*self.arguments.null_bitmap);

0 commit comments

Comments
 (0)