Commit aeb993bc authored by Sam Morris's avatar Sam Morris Committed by Frédéric Buclin

Bug 611974: collectstats.pl --regenerate fails with PostgreSQL 8.4.x…

Bug 611974: collectstats.pl --regenerate fails with PostgreSQL 8.4.x (sql_from_days() doesn't accept integers as argument) r/a=LpSolit
parent 8a095e95
...@@ -151,7 +151,7 @@ sub sql_limit { ...@@ -151,7 +151,7 @@ sub sql_limit {
sub sql_from_days { sub sql_from_days {
my ($self, $days) = @_; my ($self, $days) = @_;
return "TO_TIMESTAMP(${days}::int, 'J')::date"; return "TO_TIMESTAMP('$days', 'J')::date";
} }
sub sql_to_days { sub sql_to_days {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment