Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2022-08-24 08:37:23 +0300
committerGitHub <noreply@github.com>2022-08-24 08:37:23 +0300
commit8d3723cec9b0132befb3c130955c80d466d6e16f (patch)
tree91962f2ced4aa4109bd2375d42283134a855017f
parent2b8b7d0103ef2627ac32ff2cf06560749e5083a1 (diff)
Ignore duplicate key errors when creating temporary tables (#19662)
fixes #18937
-rw-r--r--core/DataAccess/LogAggregator.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/DataAccess/LogAggregator.php b/core/DataAccess/LogAggregator.php
index 61479f39d0..883dcf763d 100644
--- a/core/DataAccess/LogAggregator.php
+++ b/core/DataAccess/LogAggregator.php
@@ -321,7 +321,7 @@ class LogAggregator
return;
}
- $insertIntoStatement = 'INSERT INTO ' . $table . ' (idvisit) ' . $segmentSelectSql;
+ $insertIntoStatement = 'INSERT IGNORE INTO ' . $table . ' (idvisit) ' . $segmentSelectSql;
$readerDb->query($insertIntoStatement, $segmentSelectBind);
$transactionLevel->restorePreviousStatus();