Fixes in mysql-connector-net to enable reading of numbers

main
Inga 🏳‍🌈 15 years ago
parent 8d7c83de66
commit 75c9e03e16
  1. 1
      ThirdParty/mysql-connector-net-6.2.3/MySql.Data/Provider/Source/Types/MySqlInt16.cs
  2. 1
      ThirdParty/mysql-connector-net-6.2.3/MySql.Data/Provider/Source/Types/MySqlInt32.cs

@ -92,6 +92,7 @@ namespace MySql.Data.Types
if (nullVal) if (nullVal)
return new MySqlInt16(true); return new MySqlInt16(true);
packet.Encoding = System.Text.Encoding.ASCII;
if (length == -1) if (length == -1)
return new MySqlInt16((short)packet.ReadInteger(2)); return new MySqlInt16((short)packet.ReadInteger(2));
else else

@ -102,6 +102,7 @@ namespace MySql.Data.Types
if (nullVal) if (nullVal)
return new MySqlInt32((this as IMySqlValue).MySqlDbType, true); return new MySqlInt32((this as IMySqlValue).MySqlDbType, true);
packet.Encoding = System.Text.Encoding.ASCII;
if (length == -1) if (length == -1)
return new MySqlInt32((this as IMySqlValue).MySqlDbType, return new MySqlInt32((this as IMySqlValue).MySqlDbType,
packet.ReadInteger(4)); packet.ReadInteger(4));

Loading…
Cancel
Save