Exemple #1
0
        IMySqlValue IMySqlValue.ReadValue(MySqlPacket packet, long length, bool nullVal)
        {
            if (nullVal)
            return new MySqlByte(true);

              if (length == -1)
            return new MySqlByte((sbyte)packet.ReadByte());
              else
              {
            MySqlByte b = new MySqlByte(packet.ReadStringAsSbyte(length));
            b.TreatAsBoolean = TreatAsBoolean;
            return b;
              }
        }