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

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

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