             _authenticated = false;
 
             _queryHandler = null;
+            _hasCodecError = false;
             _currResults = [];
             
             _password = password;

                _queryHandler.handleCompletion(msg.command, msg.affectedRows, msg.oid);
                _queryHandler.dispose();
                _queryHandler = null;
            } else {
                onProtocolError(new ProtocolError("Unexpected CommandComplete")); 
            }

            _connHandler.handleCodecError(error);
            _queryHandler.dispose();
            _queryHandler = null;
            // Note that we still may need to throw away any number of DataRow messages
            _hasCodecError = true; 
        }

    }
