summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB
diff options
context:
space:
mode:
authorSam Morris <sam@robots.org.uk>2010-11-14 20:02:08 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2010-11-14 20:02:08 +0100
commitaeb993bcca46740053111af4c710afd24dee2be2 (patch)
treeed247f5ed968f61abff71129e470c49e3e39c622 /Bugzilla/DB
parent8a095e956132523356060e481bda1eefe60e732a (diff)
downloadbugzilla-aeb993bcca46740053111af4c710afd24dee2be2.tar.gz
bugzilla-aeb993bcca46740053111af4c710afd24dee2be2.tar.xz
Bug 611974: collectstats.pl --regenerate fails with PostgreSQL 8.4.x (sql_from_days() doesn't accept integers as argument)
r/a=LpSolit
Diffstat (limited to 'Bugzilla/DB')
-rw-r--r--Bugzilla/DB/Pg.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/DB/Pg.pm b/Bugzilla/DB/Pg.pm
index c1c656a69..7802d58ef 100644
--- a/Bugzilla/DB/Pg.pm
+++ b/Bugzilla/DB/Pg.pm
@@ -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 {