pgsql: Supress convertion of zero hours to '12' for intervals when using

From: momjian(at)postgresql(dot)org (Bruce Momjian)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Supress convertion of zero hours to '12' for intervals when using
Date: 2010-02-23 01:42:19
Message-ID: 20100223014219.46DDE7541D0@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Supress convertion of zero hours to '12' for intervals when using
to_char with HH, e.g.

to_char(interval '0d 0h 12m 44s', 'DD HH24 MI SS');

now returns:

00 00 12 44

not:

00 12 12 44

Modified Files:
--------------
pgsql/src/backend/utils/adt:
formatting.c (r1.163 -> r1.164)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/formatting.c?r1=1.163&r2=1.164)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2010-02-23 02:47:27 pgsql: Document that expression indexes that call functions allow
Previous Message Bruce Momjian 2010-02-23 00:21:19 pgsql: Update pg_restore documentation to show new pg_restore custom