to_char() and negative intervals

Bruce Momjian <pgman@candle.pha.pa.us>

From: Bruce Momjian <pgman@candle.pha.pa.us>
To: PostgreSQL-development <pgsql-hackers@postgreSQL.org>
Date: 2004-08-13T14:02:35Z
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@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073