]> 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:02:08 +0000 (20:02 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Sun, 14 Nov 2010 19:02:08 +0000 (20:02 +0100)
r/a=LpSolit

Bugzilla/DB/Pg.pm

index c1c656a69c2cee30074c1a7c162eaa8c9a03664a..7802d58ef3b686bb8365ef58983bfd5a8d487aa9 100644 (file)
@@ -151,7 +151,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 {