This commit is contained in:
Lukas Eder 2020-07-03 17:34:45 +02:00
parent 84ad860878
commit ead4acf617

View File

@ -791,9 +791,10 @@ 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
// [#7253] Use native onDuplicateKeyIgnore() support
// [#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] The above should be moved inside InsertQueryImpl
// [#7253] Use native onDuplicateKeyIgnore() support
else if (onDuplicate == ON_DUPLICATE_KEY_IGNORE && primaryKey.cardinality() > 0) {
insert.onDuplicateKeyIgnore(true);
}