Problems with datetime - Mailing list pgsql-general

From Miguel Montes
Subject Problems with datetime
Date
Msg-id 383437A6.41CCC1D5@unc.edu.ar
Whole thread Raw
List pgsql-general
Hi
      I'm using postgres to track events. I need to insert date and time
of these events, and i'm having trouble when the seconds are 00.
    Here is an example with psql

miguel=> create table tmp (d datetime);
CREATE
miguel=> insert into tmp values ('1999-11-18 13:00:00');
INSERT 20585 1
miguel=> select * from tmp;
d
-------------------------------
Thu Nov 18 13:00:60.00 1999 ART
(1 row)

13:00:00 has changed to 13:00:00. Now if  I try to insert this value I
get: ERROR:  Bad datetime external representation 'Thu Nov 18
13:00:60.00 1999 ART'

I'm using Postgresql 6.5.1, as it comes with Linux Mandrake 6.1.
Thanks in advance
    Miguel Montes


pgsql-general by date:

Previous
From: Ed Loehr
Date:
Subject: Re: sql question
Next
From: Martin Weinberg
Date:
Subject: How to efficiently update many records at once