Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong SQL syntax in FAQ entry 42 #2219

Closed
anonymous-matomo-user opened this issue Mar 23, 2011 · 2 comments
Closed

Wrong SQL syntax in FAQ entry 42 #2219

anonymous-matomo-user opened this issue Mar 23, 2011 · 2 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Milestone

Comments

@anonymous-matomo-user
Copy link

There is a FAQ entry describing "How do I purge Piwik logs?" where the SQL statement contains "AND visit_first_action_time <= CURRENT_DATE() - 30".

That statement gives this error (MySQL server 5.0.51a):
"Incorrect datetime value: '20110293' for column 'visit_first_action_time' at row 1"

The statement should be corrected to:
"AND visit_first_action_time <= DATE_SUB(CURDATE(), INTERVAL 30 DAY)"

Additionally, it should perhaps also be stated that the tables have to be optimized afterwards to regain the diskspace that was freed in the DB.

PS: I tried to include the URL to the FAQ entry in question but my ticket is then rejected as spam. If possible please allow URLs for the piwik domain.

@sgiehl
Copy link
Member

sgiehl commented Mar 23, 2011

I guess you mean this one [http://piwik.org/faq/troubleshooting/#faq_42]

@mattab
Copy link
Member

mattab commented Mar 26, 2011

Thanks for the report, FAQ updated

@anonymous-matomo-user anonymous-matomo-user added this to the Piwik 1.3 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

3 participants