Skip to content

Commit

Permalink
0005574: Unique index on function causes error when resolving a conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Nov 7, 2022
1 parent 937b2b0 commit a39c829
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -248,6 +248,9 @@ protected boolean isCaptureTimeNewerForUk(AbstractDatabaseWriter writer, CsvData
}
int count = 0;
Object[] values = databaseWriter.getPlatform().getObjectValues(writer.getBatch().getBinaryEncoding(), ukData, uniqueKeyColumns);
if (values == null || values.length == 0) {
break;
}
if (!databaseWriter.getPlatform(targetTable.getName()).supportsMultiThreadedTransactions() ||
(databaseWriter.getPlatform().getDatabaseInfo().isRequiresSavePointsInTransaction() &&
Boolean.TRUE.equals(databaseWriter.getContext().get(AbstractDatabaseWriter.TRANSACTION_ABORTED)))) {
Expand Down

0 comments on commit a39c829

Please sign in to comment.