removed outdated parser code
@@ -5382,23 +5382,12 @@ public class SQLServerResultSet implements ISQLServerResultSet, java.io.Serializ
boolean onDone(TDSReader tdsReader) throws SQLServerException {
ensureStartMark();
- int token = tdsReader.peekTokenType();
StreamDone doneToken = new StreamDone();
doneToken.setFromTDS(tdsReader);
if (doneToken.isFinal()) {
// Response is completely processed, hence decrement unprocessed response count.
stmt.connection.getSessionRecovery().decrementUnprocessedResponseCount();
}
- int packetType = tdsReader.peekTokenType();
- if (-1 != packetType && TDS.TDS_DONEINPROC == token) {
- switch (packetType) {
- case TDS.TDS_ENV_CHG:
- case TDS.TDS_ERR:
- return true;
- default:
- break;
- }
- }
// Done with all the rows in this fetch buffer and done with parsing
// unless it's a server cursor, in which case there is a RETSTAT and
