Search Postgresql Archives

Setting date format for a single output column?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx                for a gap in one's education.
http://www.schuerig.de/michael/                          --Gilbert Ryle

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux