summaryrefslogtreecommitdiffstats
path: root/whine.pl
diff options
context:
space:
mode:
Diffstat (limited to 'whine.pl')
-rwxr-xr-xwhine.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/whine.pl b/whine.pl
index 0e469e8ad..d3584db68 100755
--- a/whine.pl
+++ b/whine.pl
@@ -69,7 +69,8 @@ my $sth_next_scheduled_event = $dbh->prepare(
"LEFT JOIN whine_events " .
" ON whine_events.id = whine_schedules.eventid " .
"WHERE run_next <= NOW() " .
- "ORDER BY run_next LIMIT 1"
+ "ORDER BY run_next " .
+ $dbh->sql_limit(1)
);
# get all pending schedules matching an eventid