You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BugFor errors / faults / flaws / inconsistencies etc.MajorIndicates the severity or impact or benefit of an issue is much higher than normal but not critical.
when updating my Piwik installation, I take the SQL queries that Piwik shows and execute them manually in my SQL client to have better control over it.
Normally this works fine, but with this version there were comments in those queries that broke the query:
INSERT INTO piwik_log_action_duplicates ( SELECT action.idaction AS before, canonical.idaction AS after FROM ( SELECT name, hash, MIN(idaction) AS idaction FROM piwik_log_action AS action_canonical_base WHERE type = 1 AND url_prefix IS NOT NULL GROUP BY name, hash # only grouping by name would be case-insensitive HAVING COUNT(idaction) > 1 ) AS canonical LEFT JOIN piwik_log_action AS action ON (action.type = 1 AND canonical.hash = action.hash) # use index (type, hash) AND canonical.name = action.name AND canonical.idaction != action.idaction ); ;
See the two # parts. As the website states that one should continue executing the other queries if some query might fail, I executed all of them at once. Fortunately, nothing happened in this case, but in general, this is quite critical.
In addition, there are two semi-colons at the end, leading to empty queries and therefore to messages/warnings in my client.
Lars
The text was updated successfully, but these errors were encountered:
BugFor errors / faults / flaws / inconsistencies etc.MajorIndicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Hi,
when updating my Piwik installation, I take the SQL queries that Piwik shows and execute them manually in my SQL client to have better control over it.
Normally this works fine, but with this version there were comments in those queries that broke the query:
INSERT INTO
piwik_log_action_duplicates
( SELECT action.idaction ASbefore
, canonical.idaction ASafter
FROM ( SELECT name, hash, MIN(idaction) AS idaction FROMpiwik_log_action
AS action_canonical_base WHERE type = 1 AND url_prefix IS NOT NULL GROUP BY name, hash # only grouping by name would be case-insensitive HAVING COUNT(idaction) > 1 ) AS canonical LEFT JOINpiwik_log_action
AS action ON (action.type = 1 AND canonical.hash = action.hash) # use index (type, hash) AND canonical.name = action.name AND canonical.idaction != action.idaction ); ;See the two # parts. As the website states that one should continue executing the other queries if some query might fail, I executed all of them at once. Fortunately, nothing happened in this case, but in general, this is quite critical.
In addition, there are two semi-colons at the end, leading to empty queries and therefore to messages/warnings in my client.
Lars
The text was updated successfully, but these errors were encountered: