Re: Datatype conversion help - Mailing list pgsql-sql

From Richard Huxton
Subject Re: Datatype conversion help
Date
Msg-id 200307090929.44336.dev@archonet.com
Whole thread Raw
In response to Re: Datatype conversion help  (Yasir Malik <ymalik@cs.stevens-tech.edu>)
List pgsql-sql
On Tuesday 08 Jul 2003 10:19 pm, Yasir Malik wrote:
> Yes, Mr. Nachbaur helped me out.  Thanks.  I don't think I can do
> to_char(<whatever date>, 'MM-DD-YYYY)
> because the date fields are originally stored as separate integers in my
> schema (they have to be that way).  I still can't understand why the extra
> space was added after the dash.  It just made my life more miserable.
> Yasir

You are not the only one it makes miserable. I believe it's there to provide
compatibility with Oracle/some other db. Their function does it so ours
should too. Very strange behaviour though.

--  Richard Huxton


pgsql-sql by date:

Previous
From: Achilleus Mantzios
Date:
Subject: Re: Logging select statements
Next
From: "Rudi Starcevic"
Date:
Subject: Re: Logging select statements