Skip to content

Commit

Permalink
updated references to use BaseSqlProvider.TotalRowsAffected
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasSort committed Jul 3, 2024
1 parent 99f8c13 commit 326b3bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Dynamicweb.DataIntegration" Version="10.6.2" />
<PackageReference Include="Dynamicweb.DataIntegration" Version="10.6.3" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
</ItemGroup>
</Project>
5 changes: 3 additions & 2 deletions src/SQLProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ public override bool RunJob(Job job)
if (rowsAffected > 0)
{
Logger.Log($"The number of rows affected: {rowsAffected} in the {writer.Mapping.DestinationTable.Name} table");
writer.RowsAffected += rowsAffected;
TotalRowsAffected += rowsAffected;
}
}
else
Expand All @@ -518,7 +518,7 @@ public override bool RunJob(Job job)
if (rowsAffected > 0)
{
Logger.Log($"The number of deleted rows: {rowsAffected} for the destination {writer.Mapping.DestinationTable.Name} table mapping");
writer.RowsAffected += (int)rowsAffected;
TotalRowsAffected += rowsAffected;
}
}
}
Expand Down Expand Up @@ -549,6 +549,7 @@ public override bool RunJob(Job job)
Logger.Log("Import job failed: " + msg);
}
RollbackTransaction();
TotalRowsAffected = 0;
return false;
}
finally
Expand Down

0 comments on commit 326b3bf

Please sign in to comment.