fix(mssql): handle errors without breaking the stream

This commit is contained in:
Ryan Leckey
2020-06-27 20:46:25 -07:00
parent cfa833fa0d
commit e4005bb53d
2 changed files with 28 additions and 3 deletions

View File

@@ -177,8 +177,7 @@ impl MssqlStream {
}
pub(crate) fn handle_error<T>(&mut self, error: ProtocolError) -> Result<T, Error> {
// error is sent _instead_ of a done
self.pending_done_count -= 1;
// NOTE: [error] is sent IN ADDITION TO [done]
Err(MssqlDatabaseError(error).into())
}