Re: FX modifier

Поиск
Список
Период
Сортировка
От Euler Taveira
Тема Re: FX modifier
Дата
Msg-id CAHE3wggsRC0rytfuqR7w=_pQCGB4zBGXMf4ecj=SL5_JSa50-A@mail.gmail.com
обсуждение исходный текст
Ответ на FX modifier  (PG Doc comments form <noreply@postgresql.org>)
Список pgsql-docs
2018-06-14 17:16 GMT-03:00 PG Doc comments form <noreply@postgresql.org>:
> The FX modifier is defined only as "fixed format global option"--what does
> this mean?
> The usage notes do not mention FX for TO_CHAR. Does it work with TO_CHAR?
>
This is not a bug. The documentation is clear.

"to_timestamp and to_date skip multiple blank spaces in the input
string unless the FX option is used. For example, to_timestamp('2000
 JUN', 'YYYY MON') works, but to_timestamp('2000    JUN', 'FXYYYY
MON') returns an error because to_timestamp expects one space only. FX
must be specified as the first item in the template."

FX only applies to to_timestamp and to_date.


-- 
   Euler Taveira                                   Timbira -
http://www.timbira.com.br/
   PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: json_to_record Example
Следующее
От: Euler Taveira
Дата:
Сообщение: Re: postgresql 11 release notes