pgsql: Fix to_char(interval) to return proper year and century values.

From: momjian(at)svr1(dot)postgresql(dot)org (Bruce Momjian)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix to_char(interval) to return proper year and century values.
Date: 2005-08-18 04:37:09
Message-ID: 20050818043709.68244529E5@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Fix to_char(interval) to return proper year and century values.
Fix to_char(interval) to return large year/month/day/hour values that
are larger than possible timestamp values.
Prevent to_char(interval) format specifications that make no sense, like
Month.
Clean up formatting.c code to more logically handle return lengths.

Modified Files:
--------------
pgsql/src/backend/utils/adt:
formatting.c (r1.97 -> r1.98)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/formatting.c.diff?r1=1.97&r2=1.98)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2005-08-18 04:42:42 pgsql: Done: > * -Prevent to_char() on interval from returning
Previous Message Tom Lane 2005-08-17 22:14:35 pgsql: Avoid an Assert failure if OuterUserId hasn't been set yet during