Re: FM format modifier does not remove leading zero from year

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: FM format modifier does not remove leading zero from year
Дата
Msg-id 201001050727.45550.aklaver@comcast.net
обсуждение исходный текст
Ответ на FM format modifier does not remove leading zero from year  ("Andrus" <kobruleht2@hot.ee>)
Ответы Re: FM format modifier does not remove leading zero from year  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Saturday 02 January 2010 10:14:07 am Andrus wrote:
> Command:
>
> select to_char(DATE'2009-1-1','FMDD.FMMM.FMYY')
>
> Result observed:
>
> 1.1.09
>
> Result expected:
>
> 1.1.9
>
> How to fix ?
>
> Andrus.

From what I could see in the source code (src/backend/utils/adt/formatting.c)
the year portion of the string is not run through the FM modifier. A fix would
mean a patch to the above AFAIK.

--
Adrian Klaver
aklaver@comcast.net

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

Предыдущее
От: Sam Mason
Дата:
Сообщение: optimisations to aggregates
Следующее
От: Antonio Goméz Soto
Дата:
Сообщение: Using table name in column for joining