Skip to content

Commit

Permalink
0005214: Fixed column count error when load transform falls back to a…
Browse files Browse the repository at this point in the history
…n insert with a column that is included on insert only
  • Loading branch information
evan-miller-jumpmind committed Feb 10, 2022
1 parent 053cf73 commit 26aaff7
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -68,6 +68,7 @@ protected void performFallbackToInsert(AbstractDatabaseWriter writer, CsvData da
} else if (table.hasAutoIncrementColumn()) {
writer.allowInsertIntoAutoIncrementColumns(true, table);
}
transformWriter.lastTransformedTable = table;
writer.start(table);
super.performFallbackToInsert(writer, newData, conflict, retransform);
writer.end(table);
Expand Down Expand Up @@ -97,6 +98,7 @@ protected void performFallbackToUpdate(AbstractDatabaseWriter writer, CsvData da
for (TransformedData newlyTransformedData : newlyTransformedDatas) {
if (newlyTransformedData.hasSameKeyValues(transformedData.getKeyValues())) {
Table table = newlyTransformedData.buildTargetTable();
transformWriter.lastTransformedTable = table;
writer.start(table);
super.performFallbackToUpdate(writer, newlyTransformedData.buildTargetCsvData(), conflict, retransform);
writer.end(table);
Expand Down

0 comments on commit 26aaff7

Please sign in to comment.