Re: WIP: to_char, support for EEEE format

Поиск
Список
Период
Сортировка
От Brendan Jurd
Тема Re: WIP: to_char, support for EEEE format
Дата
Msg-id 37ed240d0908101056k721dd2b2n64c31133a564ff05@mail.gmail.com
обсуждение исходный текст
Ответ на Re: WIP: to_char, support for EEEE format  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: mixed, named notation support
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: [BUGS] BUG #4961: pg_standby.exe crashes with no args