Skip to content

Commit

Permalink
Send retained transaction descriptor in MARS TDS header for .NET Core…
Browse files Browse the repository at this point in the history
… and .NET 5+ (#1623) (#1624)
  • Loading branch information
swh-cb authored May 27, 2022
1 parent b0d0b2a commit e1fcf5b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10753,7 +10753,8 @@ private void WriteMarsHeaderData(TdsParserStateObject stateObj, SqlInternalTrans
}
else
{
WriteLong(SqlInternalTransaction.NullTransactionId, stateObj);
// If no transaction, send over retained transaction descriptor (empty if none retained)
WriteLong(_retainedTransactionId, stateObj);
WriteInt(stateObj.IncrementAndObtainOpenResultCount(null), stateObj);
}
}
Expand Down

0 comments on commit e1fcf5b

Please sign in to comment.