From: | Brendan Jurd <direvus(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Euler Taveira de Oliveira <euler(at)timbira(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: WIP: to_char, support for EEEE format |
Date: | 2009-08-10 17:56:08 |
Message-ID: | 37ed240d0908101056k721dd2b2n64c31133a564ff05@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
2009/8/11 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
> Working through this now, and I noticed that the example added to the
> manual seems to be wrong:
>
> <entry><literal>to_char(0.000485, '9.99EEEE')</literal></entry>
> <entry><literal>' 4.850e-04'</literal></entry>
>
> With 9.99 as the pattern, I'd expect (and indeed I get) 4.85e-04
> not 4.850e-04. This is correct behavior, no?
Correct. I apologise for the oversight.
The example output should lose the trailing zero, or else the example
query needs an extra '9' after the decimal point. I don't think it
makes much difference which.
Cheers,
BJ
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Hagander | 2009-08-10 18:10:24 | Re: BUG #4961: pg_standby.exe crashes with no args |
Previous Message | Kevin Grittner | 2009-08-10 17:55:44 | Re: mixed, named notation support |