Skip to content

Commit

Permalink
Fixed 0001559: If there are no primary keys defined when the database…
Browse files Browse the repository at this point in the history
… writer is processing an update or delete report an error.
  • Loading branch information
chenson42 committed Feb 3, 2014
1 parent 658fb07 commit 98767b6
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -586,6 +586,8 @@ protected LoadStatus delete(CsvData data, boolean useConflictDetection) {
lookupKeys = targetTable.getColumnsAsList();
}

int lookupKeyCountBeforeLobRemoval = lookupKeys.size();

if (!platform.getDatabaseInfo().isBlobsWorkInWhereClause()
|| data.isNoBinaryOldData()) {
Iterator<Column> it = lookupKeys.iterator();
Expand All @@ -597,8 +599,6 @@ protected LoadStatus delete(CsvData data, boolean useConflictDetection) {
}
}

int lookupKeyCountBeforeLobRemoval = lookupKeys.size();

if (lookupKeys.size() == 0) {
String msg = "There are no keys defined for "
+ targetTable.getFullyQualifiedTableName()
Expand Down

0 comments on commit 98767b6

Please sign in to comment.