Пример #1
0
        IMySqlValue IMySqlValue.ReadValue(MySqlPacket packet, long length, bool nullVal)
        {
            if (nullVal)
            return new MySqlUInt32((this as IMySqlValue).MySqlDbType, true);

              if (length == -1)
            return new MySqlUInt32((this as IMySqlValue).MySqlDbType,
                     (uint)packet.ReadInteger(4));
              else
            return new MySqlUInt32((this as IMySqlValue).MySqlDbType,
                     packet.ReadStringAsUInt32(length));
        }