to_char() and negative intervals

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: to_char() and negative intervals
Date: 2004-08-13 14:02:35
Message-ID: 200408131402.i7DE2Z817167@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Someone on IRC just reported this to_char() failure with negative
intervals:

test=> SELECT to_char('-00:17:56.886375'::interval, 'HH24:MI:SS');
to_char
----------
00:-1:-5
(1 row)

Looks like a bug to me. :-)

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Arash Zaryoun 2004-08-13 14:43:43 Weird Database Performance problem!
Previous Message Tom Lane 2004-08-13 14:02:12 Re: Trigger function returning null