]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 442175: [Oracle] cron script collectstats.pl doesn't work (ORA error)
authormkanat%bugzilla.org <>
Sat, 28 Jun 2008 22:51:38 +0000 (22:51 +0000)
committermkanat%bugzilla.org <>
Sat, 28 Jun 2008 22:51:38 +0000 (22:51 +0000)
Patch By Xiaoou Wu <xiaoou.wu@oracle.com> r=mkanat, a=mkanat

collectstats.pl

index 4c66810a049c2f9c3a46960d17c9a78b3a7ec3d4..160b566c3a4434eba442a18960dfc9f20d03a6c1 100755 (executable)
@@ -539,7 +539,7 @@ sub CollectSeriesData {
     my $serieses = $dbh->selectall_hashref("SELECT series_id, query, creator " .
                       "FROM series " .
                       "WHERE frequency != 0 AND " . 
-                      "($days_since_epoch + series_id) % frequency = 0",
+                      "MOD(($days_since_epoch + series_id), frequency) = 0",
                       "series_id");
 
     # We prepare the insertion into the data table, for efficiency.