Skip to content

Commit

Permalink
0001206: dataloader.ignore.missing.tables not working for initial loa…
Browse files Browse the repository at this point in the history
…d when initial.load.delete.first=true
  • Loading branch information
chenson42 committed May 10, 2013
1 parent b1288cf commit b7d3e82
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -156,12 +156,14 @@ public boolean start(Table table) {
}

public void write(CsvData data) {
if (data.requiresTable() && targetTable == null) {
if (data.requiresTable() &&
(targetTable == null && data.getDataEventType() != DataEventType.SQL)) {
// if we cross batches and the table isn't specified, then
// use the last table we used
start(context.getLastParsedTable());
}
if (targetTable != null || !data.requiresTable()) {
if (targetTable != null || !data.requiresTable() ||
(targetTable == null && data.getDataEventType() == DataEventType.SQL)) {
try {
statistics.get(batch).increment(DataWriterStatisticConstants.STATEMENTCOUNT);
statistics.get(batch).increment(DataWriterStatisticConstants.LINENUMBER);
Expand Down

0 comments on commit b7d3e82

Please sign in to comment.