Skip to content

Commit a69fea0

Browse files
committed
Fix error deserialising MySqlException.ErrorCode property.
1 parent fa483fe commit a69fea0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/MySqlConnector/MySqlException.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ private MySqlException(SerializationInfo info, StreamingContext context)
4545
: base(info, context)
4646
{
4747
Number = info.GetInt32("Number");
48+
ErrorCode = (MySqlErrorCode) Number;
4849
SqlState = info.GetString("SqlState");
4950
}
5051

0 commit comments

Comments
 (0)