Setting date format for a single output column? - Mailing list pgsql-general

From Michael Schuerig
Subject Setting date format for a single output column?
Date
Msg-id 200509140212.34963.michael@schuerig.de
Whole thread Raw
Responses Re: Setting date format for a single output column?
List pgsql-general
I'd like to get date columns in the results of a query in the
appropriate format (EUROPEAN, GERMAN). I've tried to set DATESTYLE and
it works as far as PgSQL is concerned. Unfortunately, though, this
confuses the date parsing of the O/R-Mapper I'm using[*]. Is there a way
to set the date style/format on a per column basis for the result
returned by a SELECT statement?

Michael


[*] Rails/ActiveRecord. The problem actually lies still deeper in Ruby's
parsedate standard lib method.

--
Michael Schuerig                          Thinking is trying to make up
mailto:michael@schuerig.de                for a gap in one's education.
http://www.schuerig.de/michael/                          --Gilbert Ryle

pgsql-general by date:

Previous
From: Stephen Frost
Date:
Subject: Re: oracle's first_value function for postgres?
Next
From: Alvaro Herrera
Date:
Subject: Re: Setting date format for a single output column?