diff options
author | Stefan Giehl <stefan@matomo.org> | 2022-08-24 08:37:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-24 08:37:23 +0300 |
commit | 8d3723cec9b0132befb3c130955c80d466d6e16f (patch) | |
tree | 91962f2ced4aa4109bd2375d42283134a855017f | |
parent | 2b8b7d0103ef2627ac32ff2cf06560749e5083a1 (diff) |
Ignore duplicate key errors when creating temporary tables (#19662)
fixes #18937
-rw-r--r-- | core/DataAccess/LogAggregator.php | 2 |
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(); |