Hello, I'm trying to use IGNORE with insertMulti but getting duplicate key errors, code and error below, with the only notable oddity being the table being inserted into has a compound primary key - that shouldn't affect IGNORE though :
$records = $db->setQueryOption('IGNORE')->insertMulti('table', $array_of_arrays);
if(!$records) {
echo 'insert failed: ' . $db->getLastError();
} else {
echo 'new records inserted with following id\'s: ' . implode(', ', $records);
}
insert failed: Duplicate entry 'recordname-2018-07-05' for key 'PRIMARY'
Results of $db->getLastQuery()
composer.json :
"joshcam/mysqli-database-class": "dev-master",
Also tried on v2.9.2 with same error messages.
Hello, I'm trying to use IGNORE with insertMulti but getting duplicate key errors, code and error below, with the only notable oddity being the table being inserted into has a compound primary key - that shouldn't affect IGNORE though :
Results of $db->getLastQuery()
composer.json :
Also tried on v2.9.2 with same error messages.