Skip to content

Commit

Permalink
[ 1826881 ] Failed row number populated with wrong count
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Nov 6, 2007
1 parent 36f9d3f commit 8f7ec59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -87,7 +87,7 @@ public void setValues(IDataLoaderStatistics statistics, boolean isSuccess) {
endTime = new Date();
if (! isSuccess) {
status = Status.ER;
failedRowNumber = statistics.getLineCount();
failedRowNumber = statistics.getStatementCount();
}
}

Expand Down
Expand Up @@ -191,7 +191,7 @@ public void testErrorWhileSkip() throws Exception {
Assert.assertEquals(list.size(), 2, "Wrong number of history");
history = list.get(1);
Assert.assertEquals(history.getStatus(), IncomingBatchHistory.Status.ER, "Wrong status");
Assert.assertEquals(history.getFailedRowNumber(), 2, "Wrong failed row number");
Assert.assertEquals(history.getFailedRowNumber(), 0, "Wrong failed row number");
Assert.assertEquals(history.getStatementCount(), 0, "Wrong statement count");
}

Expand Down

0 comments on commit 8f7ec59

Please sign in to comment.