Skip to content

Commit 6cf3459

Browse files
authored
Allows for the retrievel of more than 2^31-1 rows in a single query. (#863)
Allows for the retrieval of more than 2^31-1 rows in a single query. Prior to this fix the internal counter for the sequence number was stored as a signed 32-bit integer which was causing overflow issues when we hit Int32.MaxValue. Signed-off-by: Adam Kamor <[email protected]>
1 parent 62bce55 commit 6cf3459

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MySqlConnector/Protocol/Serialization/StandardPayloadHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ public ValueTask<int> WritePayloadAsync(ReadOnlyMemory<byte> payload, IOBehavior
4747
readonly Func<int> m_getNextSequenceNumber;
4848
IByteHandler? m_byteHandler;
4949
BufferedByteReader? m_bufferedByteReader;
50-
int m_sequenceNumber;
50+
byte m_sequenceNumber;
5151
}
5252
}

0 commit comments

Comments
 (0)