Re: WIP: to_char, support for EEEE format - Mailing list pgsql-hackers

From Brendan Jurd
Subject Re: WIP: to_char, support for EEEE format
Date
Msg-id 37ed240d0908101056k721dd2b2n64c31133a564ff05@mail.gmail.com
Whole thread Raw
In response to Re: WIP: to_char, support for EEEE format  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
2009/8/11 Tom Lane <tgl@sss.pgh.pa.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


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: mixed, named notation support
Next
From: Magnus Hagander
Date:
Subject: Re: [BUGS] BUG #4961: pg_standby.exe crashes with no args