Re: query_to_xml function ignores Datestyle?

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: query_to_xml function ignores Datestyle?
Дата
Msg-id AANLkTinsUQ33j-eVHxS6GkzXjmBhEgBvcBaSPDP-0d9s@mail.gmail.com
обсуждение исходный текст
Ответ на query_to_xml function ignores Datestyle?  (Esmin Gracic <esmin.gracic@gmail.com>)
Список pgsql-general
Hello

2011/1/1 Esmin Gracic <esmin.gracic@gmail.com>:
> It seems that query_to_xml function ignores Datestyle settings?
> Is this correct? If yes, is there any workarounf except
> to_char(date,'dd.mm.yyyy');
>

xsd define format for date, so you have to use a to_char function or
just cast to text.

Regards

Pavel Stehule

> set datestyle = 'German';
> select current_date;
> select QUERY_TO_XML('select current_date',true,false,'');
>
>
> Postgresql 9.0 on Ubuntu 10.04 Server (64-bit)
>
> Esmin Gracić
>

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

Предыдущее
От: Esmin Gracic
Дата:
Сообщение: query_to_xml function ignores Datestyle?
Следующее
От: vwu98034@lycos.com
Дата:
Сообщение: Issues on Insert Data From Existing Table