dbTalk Databases Forums  

[BUGS] BUG #1020: Timestamp representation printed by PostgreSQL are invalid

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1020: Timestamp representation printed by PostgreSQL are invalid in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PostgreSQL Bugs List
 
Posts: n/a

Default [BUGS] BUG #1020: Timestamp representation printed by PostgreSQL are invalid - 12-19-2003 , 09:47 AM







The following bug has been logged online:

Bug reference: 1020
Logged by: Sebastiano Vigna
Email address: vigna (AT) dsi (DOT) unimi.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

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #1020: Timestamp representation printed by PostgreSQL are invalid - 12-19-2003 , 10:22 AM






"PostgreSQL Bugs List" <pgsql-bugs (AT) postgresql (DOT) org> writes:
Quote:
This is nonsense: the representation returned by a SELECT for a data type should be *VALID*, shouldn't it?
CURRENT_TIME delivers a timetz value, which is not the same datatype as
time.

Having said that, 7.4 will accept this input string for a time column;
it was suggested that since timestamp-without-time-zone allows and
ignores a time zone field, time-without-time-zone should too.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.