Skip to content

Commit e1fcf5b

Browse files
authored
Send retained transaction descriptor in MARS TDS header for .NET Core and .NET 5+ (#1623) (#1624)
1 parent b0d0b2a commit e1fcf5b

File tree

1 file changed

+2
-1
lines changed
  • src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient

1 file changed

+2
-1
lines changed

src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -10753,7 +10753,8 @@ private void WriteMarsHeaderData(TdsParserStateObject stateObj, SqlInternalTrans
1075310753
}
1075410754
else
1075510755
{
10756-
WriteLong(SqlInternalTransaction.NullTransactionId, stateObj);
10756+
// If no transaction, send over retained transaction descriptor (empty if none retained)
10757+
WriteLong(_retainedTransactionId, stateObj);
1075710758
WriteInt(stateObj.IncrementAndObtainOpenResultCount(null), stateObj);
1075810759
}
1075910760
}

0 commit comments

Comments
 (0)