Skip to content

Commit

Permalink
0005573: 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 8a32ecf commit 251bcf5
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -268,6 +268,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 251bcf5

Please sign in to comment.