From 5c6f7b98dbc531ec39b976730279926b980354f2 Mon Sep 17 00:00:00 2001 From: Stefan Giehl Date: Fri, 27 Sep 2024 17:35:55 +0200 Subject: [PATCH] Handle ignoring of duplicates the same when not using INSERT SELECT (#22625) --- core/DataAccess/LogAggregator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/DataAccess/LogAggregator.php b/core/DataAccess/LogAggregator.php index 1df5000fd68..69683df366b 100644 --- a/core/DataAccess/LogAggregator.php +++ b/core/DataAccess/LogAggregator.php @@ -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; }