We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 941cbe9 commit eac2cd9Copy full SHA for eac2cd9
src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlBulkCopy.cs
@@ -562,11 +562,11 @@ private string AnalyzeTargetAndCreateUpdateBulkCommand(BulkCopySimpleResultSet i
562
if (_parser.Is2005OrNewer)
563
{
564
hasExistingTransaction = _connection.HasLocalTransaction;
565
- }
566
- else
567
- {
+ }
+ else
+ {
568
hasExistingTransaction = (bool)(0 < (SqlInt32)internalResults[TranCountResultId][TranCountRowId][TranCountValueId]);
569
570
571
// Throw if there is a transaction but no flag is set
572
if (hasExistingTransaction
0 commit comments