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 UseConnectionParser()
 {
     //switch from current parser to another
     ParseResult = null;
     currentPacketParser = connParser;
     _mysqlStreamReader.Reset();
 }