コード例 #1
0
        public static StatementPrepareOk Parse(ref PacketReader reader)
        {
            var prepareOk = new StatementPrepareOk();

            if (reader.ReadByte() != Code)
            {
                throw new Exception("TODO");
            }

            prepareOk.StatementId  = reader.ReadInt16();
            prepareOk.ColumnsCount = reader.ReadInt16();

            var notused = reader.ReadLengthEncodedStringSegment();

            prepareOk.WarningsCount = reader.ReadInt16();

            return(prepareOk);
        }
コード例 #2
0
 public static StatementPrepareOk ReadStatementPrepareOk(ref PacketReader reader)
 {
     return(StatementPrepareOk.Parse(ref reader));
 }