IMySqlValue IMySqlValue.ReadValue(MySqlPacket packet, long length, bool nullVal) { if (nullVal) return new MySqlInt32((this as IMySqlValue).MySqlDbType, true); if (length == -1) return new MySqlInt32((this as IMySqlValue).MySqlDbType, packet.ReadInteger(4)); else return new MySqlInt32((this as IMySqlValue).MySqlDbType, packet.ReadStringAsInt32(length)); }