fix: restore usage of -i -n in polling (#5228)

This commit is contained in:
Neil Lathwood
2016-12-22 21:33:51 +00:00
committed by GitHub
parent bcb4d36643
commit 9ab4c1f4ee

View File

@ -57,7 +57,7 @@ if (isset($options['i']) && $options['i'] && isset($options['n'])) {
// FIXME
$query = 'SELECT * FROM (SELECT @rownum :=0) r,
(
SELECT @rownum := @rownum +1 AS rownum, `device_id`
SELECT @rownum := @rownum +1 AS rownum, `devices`.*
FROM `devices`
WHERE `disabled` = 0
ORDER BY `device_id` ASC