Re: Bad timestamp external representation

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Mark Tessier <m_tessier(at)sympatico(dot)ca>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Bad timestamp external representation
Date: 2003-04-29 03:26:11
Message-ID: 20030428202224.Y23835-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Mon, 28 Apr 2003, Mark Tessier wrote:

> On Mon, 28 Apr 2003 15:09:46 -0700 (PDT)
> Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> wrote:
>
> Actually, that was the last thing I tried before I wrote this note. Before I entered
>
> herboris=> INSERT INTO cart (cartid, clientid, invdate, paydate) VALUES
> herboris-> (4469858, 2, 'current', 'now');
>
> And still got the same error message:
>
> ERROR: Bad date external representation 'current'

You didn't give a version, but my 7.3 box gives
ERROR: 'CURRENT' is no longer supported
for simple inserts to date columns with a quoted current.

I'd think the correct sequence of values would be:
(4469858, 2, current_timestamp, 'now')
since current_timestamp isn't like a string literal, but is a special date
value function.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-04-29 03:51:51 Re: Bug(?) with cursors using aggregate functions.
Previous Message Mark Tessier 2003-04-29 02:40:09 Re: Bad timestamp external representation