pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Yasir Malik <ymalik@cs.stevens-tech.edu>
To: David Olbersen <DOlbersen@stbernard.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Datatype conversion help
Date: Wed, 9 Jul 2003 09:29:44 +0100
Message-ID: <200307090929.44336.dev@archonet.com> (raw)
In-Reply-To: <Pine.SGI.4.51.0307081715130.4138513@guinness.cs.stevens-tech.edu>
References: <E7E213858379814A9AE48CA6754F5ECB0D6F76@mail01.stbernard.com>
	<Pine.SGI.4.51.0307081715130.4138513@guinness.cs.stevens-tech.edu>

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



view thread (13+ messages)  latest in thread

Message-ID: <200307090929.44336.dev@archonet.com>
Permalink:  ../200307090929.44336.dev@archonet.com/
Also on:    postgresql.org/message-id/200307090929.44336.dev@archonet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dev@archonet.com, ymalik@cs.stevens-tech.edu, DOlbersen@stbernard.com
  Subject: Re: Datatype conversion help
  In-Reply-To: <200307090929.44336.dev@archonet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox