Beispiel #1
0
        private MySqlGuid ReadOldGuid(MySqlPacket packet, long length)
        {
            if (length == -1)
            length = (long)packet.ReadFieldLength();

              byte[] buff = new byte[length];
              packet.Read(buff, 0, (int)length);
              MySqlGuid g = new MySqlGuid(buff);
              g.OldGuids = OldGuids;
              return g;
        }
Beispiel #2
0
 IMySqlValue IMySqlValue.ReadValue(MySqlPacket packet, long length, bool nullVal)
 {
     MySqlGuid g = new MySqlGuid();
       g.isNull = true;
       g.OldGuids = OldGuids;
       if (!nullVal)
       {
     if (OldGuids)
       return ReadOldGuid(packet, length);
     string s = String.Empty;
     if (length == -1)
       s = packet.ReadLenString();
     else
       s = packet.ReadString(length);
     g.mValue = new Guid(s);
     g.isNull = false;
       }
       return g;
 }