MySQL doesn't support specifying microsecond precision, and MariaDB defaults to zero, so it can be removed to be compatible with both.

This commit is contained in:
Clint Armstrong 2015-09-08 10:30:08 -04:00
parent dde75439d2
commit 68a970663f

View File

@ -259,7 +259,7 @@ dev_query = ('SELECT device_id, status,
' INTERVAL last_polled_timetaken SECOND '
' ), '
' INTERVAL {0} SECOND) '
' AS DATETIME(0) '
' AS DATETIME '
') AS next_poll, '
'CAST( '
' DATE_ADD( '
@ -268,7 +268,7 @@ dev_query = ('SELECT device_id, status,
' INTERVAL last_discovered_timetaken SECOND '
' ), '
' INTERVAL {1} SECOND) '
' AS DATETIME(0) '
' AS DATETIME '
') as next_discovery '
'FROM devices WHERE '
'disabled = 0 '