Exemple #1
0
 public void UseConnectionParser()
 {
     //switch from current parser to another
     ParseResult         = null;
     currentPacketParser = connParser;
     _mysqlStreamReader.Reset();
 }
Exemple #2
0
 public void UsePrepareResponseParser()
 {
     //switch from current parser to another
     ParseResult           = null;
     prepareResponseParser = new PrepareResponsePacketParser(this._isProtocol41);
     currentPacketParser   = prepareResponseParser;
     _mysqlStreamReader.Reset();
 }
        public void UseResultParser(bool forPreparedResult = false)
        {
            //switch from current parser to another
            ParseResult = null;

            currentPacketParser = new ResultPacketParser(_isProtocol41, forPreparedResult);
            _mysqlStreamReader.Reset();
        }
 public void UsePrepareResponseParser()
 {
     //switch from current parser to another
     ParseResult = null;
     prepareResponseParser = new PrepareResponsePacketParser(this._isProtocol41);
     currentPacketParser = prepareResponseParser;
     _mysqlStreamReader.Reset();
 }
        public void UseResultParser(bool forPreparedResult = false)
        {
            //switch from current parser to another
            ParseResult = null;
            //--------------------------------

            currentPacketParser = new ResultPacketParser(_isProtocol41, forPreparedResult);
            _mysqlStreamReader.Reset();
        }
 public void UseConnectionParser()
 {
     //switch from current parser to another
     ParseResult = null;
     currentPacketParser = connParser;
     _mysqlStreamReader.Reset();
 }