[jOOQ/jOOQ#12741] Loader.onDuplicateKeyIgnore doesn't work on tables that don't have a PRIMARY KEY
This commit is contained in:
parent
d5d7c02d50
commit
f195735676
@ -847,11 +847,8 @@ final class LoaderImpl<R extends Record> implements
|
||||
addValueForUpdate0(insert, fields[i], row[i]);
|
||||
}
|
||||
|
||||
// [#5200] When the primary key is not supplied in the data,
|
||||
// we'll assume it uses an identity, and there will never be duplicates
|
||||
// [#10358] TODO: The above should be moved inside InsertQueryImpl
|
||||
// [#7253] Use native onDuplicateKeyIgnore() support
|
||||
else if (onDuplicate == ON_DUPLICATE_KEY_IGNORE && primaryKey.cardinality() > 0) {
|
||||
else if (onDuplicate == ON_DUPLICATE_KEY_IGNORE) {
|
||||
insert.onDuplicateKeyIgnore(true);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user