Re: WIP: to_char, support for EEEE format

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: WIP: to_char, support for EEEE format
Дата
Msg-id 162867790908101232x303f6e3axcd0c56bdb4f40c40@mail.gmail.com
обсуждение исходный текст
Ответ на Re: WIP: to_char, support for EEEE format  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: WIP: to_char, support for EEEE format  (Brendan Jurd <direvus@gmail.com>)
Список pgsql-hackers
2009/8/10 Tom Lane <tgl@sss.pgh.pa.us>:
> Brendan Jurd <direvus@gmail.com> writes:
>> Here's version 7.
>
> Applied with a couple of corrections: the numeric case wasn't dealing
> with NaNs in the same way as the float cases, and the int8 case was
> converting to float8 which would lose precision.  I made it go through
> numeric instead, which is pretty expensive but I doubt this is worth
> expending extra code on.
>
>                        regards, tom lane
>

It's nice. I am playing with it, and now I found some potential issue.
The parser is maybe too tolerant:

postgres=# select to_char(3.14323,'9.9(aaaaaEEEE');to_char
---------- 3.1e+00
(1 row)

regards
Pavel Stehule


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: PL/Perl crash when using threaded perl
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Patch for 8.5, transformationHook