]> 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:53:25 +0000 (22:53 +0000)
committermkanat%bugzilla.org <>
Sat, 28 Jun 2008 22:53:25 +0000 (22:53 +0000)
Patch By Xiaoou Wu <xiaoou.wu@oracle.com> r=mkanat, a=mkanat

collectstats.pl

index 4515b424c484785c052b4e2a668b0d841e72126f..5c65f2c6acfb27e1d8de99f80c72bbcfcc5352c3 100755 (executable)
@@ -565,7 +565,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.