Re: to_char bug?

Поиск
Список
Период
Сортировка
От Bricklen Anderson
Тема Re: to_char bug?
Дата
Msg-id 4223529E.5020501@PresiNET.com
обсуждение исходный текст
Ответ на to_char bug?  ("Ben Trewern" <bendottrewern@mowlem.com>)
Список pgsql-general
Ben Trewern wrote:
> Is there any reason why :
>
> SELECT char_length(to_char(1, '000'));
>
> Gives a result
>
>  char_length
> -------------
>            4
> (1 row)
>
> It seems that to_char(1, '000') gives a string " 001" with a space in front.
> Is this a bug?
>
> Regards,
>
> Ben
>
Try formatting the result:
SELECT char_length(to_char(1, 'fm000'));

char_length
-------------
            3

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

Предыдущее
От: Caleb
Дата:
Сообщение: Unicode support on Win32
Следующее
От: Ken Johanson
Дата:
Сообщение: Re: Possible to run the server with ANSI/ISO string