Bruce Momjian wrote:
> Dave Page wrote:
> > This was posted as a documentation comment:
> > to_char(interval '0d 0h 12m 44s', 'DD HH MI SS');
> > with HH and HH12 will return 12 instead of 0.
> > Testing on 8.4.1, it does seem to be the case that you get "00 12 12
> > 44". Seems bogus to me, but am I and the OP missing something?
> Fixed with the attached patch. I think HH and HH24 should be the same
> for intervals. It is hard to explain why zero hours should show as
> '12' for intervals.
Oh, I should also mention that with the old code, 24 and 36 interval
hours would also return '12'. :-(
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
PG East: http://www.enterprisedb.com/community/nav-pg-east-2010.do
+ If your life is a hard drive, Christ can be your backup. +
In response to
pgsql-bugs by date
|Next:||From: Jaime Casanova||Date: 2010-02-23 04:15:08|
|Subject: Fwd: [BUGS] BUG #5341: problema al iniciar pgadmin|
|Previous:||From: Bruce Momjian||Date: 2010-02-23 01:44:05|
|Subject: Re: to_char issue?|