Re: [GENERAL] xml queries & date format

2008-09-11 Thread Peter Eisentraut
Jef Peeraer wrote: it would be a flag to indicate no conversion from the datestyle settings in the database...i think, from a users perspective, the table_to_xml is completely useless, if you have to reformat everything afterwards Just write a function that does your formatting afterwards.

Re: [GENERAL] xml queries & date format

2008-09-11 Thread Pavel Stehule
2008/9/11 Jef Peeraer <[EMAIL PROTECTED]>: > > > On Thu, 11 Sep 2008, Peter Eisentraut wrote: > >> Jef Peeraer wrote: >> > >> > On Thu, 11 Sep 2008, Peter Eisentraut wrote: >> > >> > > Tom Lane wrote: >> > > > Jef Peeraer <[EMAIL PROTECTED]> writes: >> > > > > i am using the xml add-ons, but the da

Re: [GENERAL] xml queries & date format

2008-09-11 Thread Jef Peeraer
On Thu, 11 Sep 2008, Peter Eisentraut wrote: > Jef Peeraer wrote: > > > > On Thu, 11 Sep 2008, Peter Eisentraut wrote: > > > > > Tom Lane wrote: > > > > Jef Peeraer <[EMAIL PROTECTED]> writes: > > > > > i am using the xml add-ons, but the date output format seems to be > > > > > wrong : > > >

Re: [GENERAL] xml queries & date format

2008-09-11 Thread Peter Eisentraut
Jef Peeraer wrote: On Thu, 11 Sep 2008, Peter Eisentraut wrote: Tom Lane wrote: Jef Peeraer <[EMAIL PROTECTED]> writes: i am using the xml add-ons, but the date output format seems to be wrong : I think the conversion to xml intentionally always uses ISO date format, because that's required

Re: [GENERAL] xml queries & date format

2008-09-11 Thread Pavel Stehule
2008/9/11 Jef Peeraer <[EMAIL PROTECTED]>: > > > On Thu, 11 Sep 2008, Peter Eisentraut wrote: > >> Tom Lane wrote: >> > Jef Peeraer <[EMAIL PROTECTED]> writes: >> > > i am using the xml add-ons, but the date output format seems to be wrong >> > > : >> > >> > I think the conversion to xml intention

Re: [GENERAL] xml queries & date format

2008-09-11 Thread Jef Peeraer
On Thu, 11 Sep 2008, Peter Eisentraut wrote: > Tom Lane wrote: > > Jef Peeraer <[EMAIL PROTECTED]> writes: > > > i am using the xml add-ons, but the date output format seems to be wrong : > > > > I think the conversion to xml intentionally always uses ISO date format, > > because that's require

Re: [GENERAL] xml queries & date format

2008-09-11 Thread Peter Eisentraut
Tom Lane wrote: Jef Peeraer <[EMAIL PROTECTED]> writes: i am using the xml add-ons, but the date output format seems to be wrong : I think the conversion to xml intentionally always uses ISO date format, because that's required by some spec somewhere. Yes, it follows XML Schema. Which is wh

Re: [GENERAL] xml queries & date format

2008-09-05 Thread Tom Lane
Jef Peeraer <[EMAIL PROTECTED]> writes: > i am using the xml add-ons, but the date output format seems to be wrong : I think the conversion to xml intentionally always uses ISO date format, because that's required by some spec somewhere. regards, tom lane -- Sent via pgs

[GENERAL] xml queries & date format

2008-09-05 Thread Jef Peeraer
i am using the xml add-ons, but the date output format seems to be wrong : i have show datestyle; DateStyle --- SQL, DMY select agenda_datum from dossiers where id = 61; agenda_datum -- 29/07/2008 select table_to_xml('dossiers', false, false, ''); gives (knip ) 62