Re: to_date has beaten me...

From: Rodger Donaldson <rodgerd(at)diaspora(dot)gen(dot)nz>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: to_date has beaten me...
Date: 2003-02-06 04:25:39
Message-ID: 20030206042539.GA8420@diaspora.gen.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Wed, Feb 05, 2003 at 11:22:57PM -0500, Tom Lane wrote:
> Rodger Donaldson <rodgerd(at)diaspora(dot)gen(dot)nz> writes:
> > values (to_date('06/Feb/2003:11:29:11 +13', 'DD/Mon/YYYY:HH24:MI:SS'),0,302,
>
> > Always inserts the correct date, but sets the time to midnight.
>
> Um, well, yeah ... it's to_DATE, meaning it produces a result of type
> date. I think you wanted to_timestamp().

Why yes. Yes I did. Too much time spent with Oracle, evidently.
Next I'll be wondering why DECODE doesn't work...

--
Rodger Donaldson rodgerd(at)diaspora(dot)gen(dot)nz
"How do I set my laser printer for stun?"
-- William Tansil

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Roberto Mello 2003-02-06 05:06:35 Re: to_date has beaten me...
Previous Message Tom Lane 2003-02-06 04:22:57 Re: to_date has beaten me...