@@ -7,7 +7,7 @@ namespace MySqlConnector.Protocol.Payloads
7
7
{
8
8
internal sealed class OkPayload
9
9
{
10
- public int AffectedRowCount { get ; }
10
+ public ulong AffectedRowCount { get ; }
11
11
public ulong LastInsertId { get ; }
12
12
public ServerStatus ServerStatus { get ; }
13
13
public int WarningCount { get ; }
@@ -32,7 +32,7 @@ public static OkPayload Create(ReadOnlySpan<byte> span, bool deprecateEof, bool
32
32
var signature = reader . ReadByte ( ) ;
33
33
if ( signature != Signature && ( ! deprecateEof || signature != EofPayload . Signature ) )
34
34
throw new FormatException ( "Expected to read 0x00 or 0xFE but got 0x{0:X2}" . FormatInvariant ( signature ) ) ;
35
- var affectedRowCount = checked ( ( int ) reader . ReadLengthEncodedInteger ( ) ) ;
35
+ var affectedRowCount = reader . ReadLengthEncodedInteger ( ) ;
36
36
var lastInsertId = reader . ReadLengthEncodedInteger ( ) ;
37
37
var serverStatus = ( ServerStatus ) reader . ReadUInt16 ( ) ;
38
38
var warningCount = ( int ) reader . ReadUInt16 ( ) ;
@@ -96,7 +96,7 @@ public static OkPayload Create(ReadOnlySpan<byte> span, bool deprecateEof, bool
96
96
return new OkPayload ( affectedRowCount , lastInsertId , serverStatus , warningCount , statusInfo , newSchema ) ;
97
97
}
98
98
99
- private OkPayload ( int affectedRowCount , ulong lastInsertId , ServerStatus serverStatus , int warningCount , string ? statusInfo , string ? newSchema )
99
+ private OkPayload ( ulong affectedRowCount , ulong lastInsertId , ServerStatus serverStatus , int warningCount , string ? statusInfo , string ? newSchema )
100
100
{
101
101
AffectedRowCount = affectedRowCount ;
102
102
LastInsertId = lastInsertId ;
0 commit comments