@@ -7,7 +7,7 @@ namespace MySqlConnector.Protocol.Payloads
77{
88 internal sealed class OkPayload
99 {
10- public int AffectedRowCount { get ; }
10+ public ulong AffectedRowCount { get ; }
1111 public ulong LastInsertId { get ; }
1212 public ServerStatus ServerStatus { get ; }
1313 public int WarningCount { get ; }
@@ -32,7 +32,7 @@ public static OkPayload Create(ReadOnlySpan<byte> span, bool deprecateEof, bool
3232 var signature = reader . ReadByte ( ) ;
3333 if ( signature != Signature && ( ! deprecateEof || signature != EofPayload . Signature ) )
3434 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 ( ) ;
3636 var lastInsertId = reader . ReadLengthEncodedInteger ( ) ;
3737 var serverStatus = ( ServerStatus ) reader . ReadUInt16 ( ) ;
3838 var warningCount = ( int ) reader . ReadUInt16 ( ) ;
@@ -96,7 +96,7 @@ public static OkPayload Create(ReadOnlySpan<byte> span, bool deprecateEof, bool
9696 return new OkPayload ( affectedRowCount , lastInsertId , serverStatus , warningCount , statusInfo , newSchema ) ;
9797 }
9898
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 )
100100 {
101101 AffectedRowCount = affectedRowCount ;
102102 LastInsertId = lastInsertId ;
0 commit comments