Skip to content

Commit

Permalink
Handle ignoring of duplicates the same when not using INSERT SELECT (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl authored Sep 27, 2024
1 parent 692309f commit 5c6f7b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/DataAccess/LogAggregator.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ private function createTemporaryTable($unprefixedSegmentTableName, $segmentSelec
$all = $readerDb->fetchAll($segmentSelectSql, $segmentSelectBind);
if (!empty($all)) {
// we're not using batchinsert since this would not support the reader DB.
$readerDb->query('INSERT INTO ' . $table . ' VALUES (' . implode('),(', array_column($all, 'idvisit')) . ')');
$readerDb->query('INSERT IGNORE INTO ' . $table . ' VALUES (' . implode('),(', array_column($all, 'idvisit')) . ')');
}
return;
}
Expand Down

0 comments on commit 5c6f7b9

Please sign in to comment.