mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-19 08:39:44 +00:00
fix(mssql): handle errors without breaking the stream
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user