Re: query_to_xml function ignores Datestyle?

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Esmin Gracic <esmin(dot)gracic(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: query_to_xml function ignores Datestyle?
Date: 2011-01-01 18:01:44
Message-ID: AANLkTinsUQ33j-eVHxS6GkzXjmBhEgBvcBaSPDP-0d9s@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello

2011/1/1 Esmin Gracic <esmin(dot)gracic(at)gmail(dot)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ć
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message vwu98034 2011-01-01 19:49:59 Issues on Insert Data From Existing Table
Previous Message Esmin Gracic 2011-01-01 17:23:27 query_to_xml function ignores Datestyle?