]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 461756: [Oracle] collectstats.pl --regenerate uses PL/SQL reserved word in query...
authorlpsolit%gmail.com <>
Tue, 28 Oct 2008 03:51:27 +0000 (03:51 +0000)
committerlpsolit%gmail.com <>
Tue, 28 Oct 2008 03:51:27 +0000 (03:51 +0000)
collectstats.pl

index 160b566c3a4434eba442a18960dfc9f20d03a6c1..08f1c113167447bfa5a36d847629339f5aae071e 100755 (executable)
@@ -376,13 +376,13 @@ sub regenerate_stats {
     # database was created, and the end date from the current day.
     # If there were no bugs in the search, return early.
     my $query = q{SELECT } .
-                $dbh->sql_to_days('creation_ts') . q{ AS start, } . 
-                $dbh->sql_to_days('current_date') . q{ AS end, } . 
+                $dbh->sql_to_days('creation_ts') . q{ AS start_day, } .
+                $dbh->sql_to_days('current_date') . q{ AS end_day, } . 
                 $dbh->sql_to_days("'1970-01-01'") . 
                  qq{ FROM bugs $from_product 
                    WHERE } . $dbh->sql_to_days('creation_ts') . 
                          qq{ IS NOT NULL $and_product 
-                ORDER BY start } . $dbh->sql_limit(1);
+                ORDER BY start_day } . $dbh->sql_limit(1);
     my ($start, $end, $base) = $dbh->selectrow_array($query, undef, @values);
 
     if (!defined $start) {