]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 611974: collectstats.pl --regenerate fails with PostgreSQL 8.4.x (sql_from_days...
authorSam Morris <sam@robots.org.uk>
Sun, 14 Nov 2010 19:07:00 +0000 (20:07 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Sun, 14 Nov 2010 19:07:00 +0000 (20:07 +0100)
r/a=LpSolit

Bugzilla/DB/Pg.pm

index b31d186bb464588de7065e4d92b33c6b30a54790..9c785e580a0d7c7f595713ee57ed7a46098097a5 100644 (file)
@@ -143,7 +143,7 @@ sub sql_limit {
 sub sql_from_days {
     my ($self, $days) = @_;
 
-    return "TO_TIMESTAMP(${days}::int, 'J')::date";
+    return "TO_TIMESTAMP('$days', 'J')::date";
 }
 
 sub sql_to_days {