diff options
author | lpsolit%gmail.com <> | 2005-11-15 18:52:55 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-11-15 18:52:55 +0100 |
commit | d9aee9d9366bdd037a09fd6a7c54b21d9749fd55 (patch) | |
tree | ea98bd2ce0d61203be743f879cfeafb2b9026185 /Bugzilla/DB | |
parent | 9410caae8b2f32207a5ab6146c0c49333ab7e366 (diff) | |
download | bugzilla-d9aee9d9366bdd037a09fd6a7c54b21d9749fd55.tar.gz bugzilla-d9aee9d9366bdd037a09fd6a7c54b21d9749fd55.tar.xz |
Bug 301141: [PostgreSQL] New charts throw an error about FROM_UNIXTIME - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
Diffstat (limited to 'Bugzilla/DB')
-rw-r--r-- | Bugzilla/DB/Pg.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/DB/Pg.pm b/Bugzilla/DB/Pg.pm index f4569b9fd..4424e65fd 100644 --- a/Bugzilla/DB/Pg.pm +++ b/Bugzilla/DB/Pg.pm @@ -114,7 +114,7 @@ sub sql_limit { sub sql_to_days { my ($self, $date) = @_; - return "TO_CHAR($date, 'J')::int"; + return "TO_CHAR(${date}::date, 'J')::int"; } sub sql_date_format { |