BUG #1020: Timestamp representation printed by PostgreSQL are invalid

From: "PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #1020: Timestamp representation printed by PostgreSQL are invalid
Date: 2003-12-19 15:45:27
Message-ID: 20031219154527.2C269CF83DC@www.postgresql.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 1020
Logged by: Sebastiano Vigna
Email address: vigna(at)dsi(dot)unimi(dot)it
PostgreSQL version: 7.3.4
Operating system: Linux
Description: Timestamp representation printed by PostgreSQL are invalid
Details:

create table test (t time);
select CURRENT_TIME;
timetz
--------------------
16:42:11.183148+01
(1 row)
insert into test VALUES('16:42:11.183148+01');
ERROR: Bad time external representation '16:42:11.183148+01'

This is nonsense: the representation returned by a SELECT for a data type should be *VALID*, shouldn't it?

I'm trying to pre-compute the default values of a field using SELECT as above, but when I try to fill the field I get an error, as above.

Ciao,

seba

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2003-12-19 15:47:30 Re: BUG #1019: src/pl/tcl/pltcl.c
Previous Message Rich Hall 2003-12-19 15:45:07 Re: plpgsql Integer Concat To String