Re: [INTERFACES] JDBC, Timestamps, and DateStyle - Mailing list pgsql-interfaces

From Thomas G. Lockhart
Subject Re: [INTERFACES] JDBC, Timestamps, and DateStyle
Date
Msg-id 3635E093.311004E1@alumni.caltech.edu
Whole thread Raw
In response to Re: [INTERFACES] JDBC, Timestamps, and DateStyle  (Peter T Mount <peter@taer.maidstone.gov.uk>)
List pgsql-interfaces
> > But it is not my main problem since I can set DateStyle by myself.
> > The other problem is that the driver simetimes fails to parse
> > timestamps.
> > ... The timestamp can contain fractions of second.

If this is the actual Postgres timestamp data type, it should not be
showing fractional seconds afaik. It would be good to be able to handle
that, since sometime soon it will become more like the datetime type,
but at the moment it is implemented as a "seconds from 1970" integer. So
the code which decides whether or not to print fractions should never
see a fraction to print...

Also, afaik timestamp always prints in the "ISO-8601" format as a
feature from the original implementer. I think he was wanting some M$
interoperability. I kept that convention when I rewrote the I/O for the
data type, but I'm not sure if it is desirable in the long run.

Are you _sure_ you are talking about the timestamp type??

                      - Tom

pgsql-interfaces by date:

Previous
From: Peter T Mount
Date:
Subject: Re: [INTERFACES] JDBC, Timestamps, and DateStyle
Next
From: Aleksey Demakov
Date:
Subject: Re: [INTERFACES] JDBC, Timestamps, and DateStyle