Ejemplo n.º 1
0
        public IMySqlValue ReadValue(MySqlPacket packet, long length, bool isNull)
        {
            if (isNull)
            {
                return(new MySqlJson(true));
            }

            string s = String.Empty;

            if (length == -1)
            {
                s = packet.ReadLenString();
            }
            else
            {
                s = packet.ReadString(length);
            }
            MySqlJson str = new MySqlJson(s);

            return(str);
        }
Ejemplo n.º 2
0
        public IMySqlValue ReadValue(MySqlPacket packet, long length, bool isNull)
        {
            if (isNull)
                return new MySqlJson(true);

            string s = String.Empty;
            if (length == -1)
                s = packet.ReadLenString();
            else
                s = packet.ReadString(length);
            MySqlJson str = new MySqlJson(s);
            return str;
        }