Пример #1
0
 void ExecuteNonPrepare_A(Action nextAction)
 {
     _sqlParserMx.UseResultParser();
     _writer.Reset();
     //query command may large
     ComQueryPacket.Write(
         _writer,
         _sqlStrTemplate.BindValues(_cmdParams, false));
     SendAndRecv_A(_writer.ToArray(), nextAction);
 }
Пример #2
0
        void ExecuteNonPrepare()
        {
            _writer.Reset();

            string realSql = _sqlStrTemplate.BindValues(_cmdParams, false);

            var queryPacket = new ComQueryPacket(realSql);

            queryPacket.WritePacket(_writer);
            SendPacket(_writer.ToArray());

            _prepareContext = null;
            ParseReceivePacket();
        }