Remove milliseconds from datetime in poller-service queries to avoid triggering MySQLdb bug #1794

Merged
merged 1 commit into from Aug 29, 2015

Projects

None yet

3 participants

@spinza
Contributor
spinza commented Aug 29, 2015

Fixes #1793

We truncate datetime to have no milliseconds. This avoids the bug in MySQLdb: http://sourceforge.net/p/mysql-python/bugs/325/

@spinza spinza Fix to avoid triggering this bug: http://sourceforge.net/p/mysql-pyth…
…on/bugs/325/

We remove miliseconds from datetime.
408b8dd
@f0o f0o merged commit 9073cf5 into librenms:master Aug 29, 2015

2 checks passed

Auto-Deploy Build finished.
Details
Scrutinizer No new issues
Details
@spinza
Contributor
spinza commented Sep 9, 2015

@clinta Do you see an issue with this?
EDIT: Nevermind. Spotted your commit to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment