Re: The notorious to_char bug

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: The notorious to_char bug
Дата
Msg-id 17921.1032361939@sss.pgh.pa.us
обсуждение исходный текст
Ответ на The notorious to_char bug  (greg@turnstep.com)
Ответы Re: The notorious to_char bug  ("Jonah H. Harris" <jharris@nightstarcorporation.com>)
Список pgsql-hackers
greg@turnstep.com writes:
> (From the SQL list:)

>> And we know it is a bug:
>> * to_char(0,'FM999.99') returns a period, to_char(1,'FM999.99') does not

> I took a look at this bug a week ago, and noticed that inside of the file 
> src/backend/utils/adt/formatting.c
> we are specifically causing the above behavior, perhaps in an effort to 
> mimic Oracle's implementation of it.

Hm.  Can anyone try these cases on Oracle?  If the code goes out of its
way to have this odd behavior, maybe it's because Oracle does too.
        regards, tom lane


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

Предыдущее
От: Rod Taylor
Дата:
Сообщение: Re: Backend crash (long)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Backend crash (long)