Skip site navigation (1) Skip section navigation (2)

Re: [INTERFACES] JDBC, Timestamps, and DateStyle

From: "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu>
To: Peter T Mount <peter(at)taer(dot)maidstone(dot)gov(dot)uk>, Aleksey Demakov <avd(at)gcom(dot)ru>
Cc: pgsql-interfaces(at)postgreSQL(dot)org, Peter T Mount <peter(at)retep(dot)org(dot)uk>
Subject: Re: [INTERFACES] JDBC, Timestamps, and DateStyle
Date: 1998-10-27 15:02:43
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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

In response to


pgsql-interfaces by date

Next:From: Thomas G. LockhartDate: 1998-10-27 15:55:47
Subject: Re: [HACKERS] Re: [INTERFACES] Odbc parser error
Previous:From: Sferacarta SoftwareDate: 1998-10-27 15:01:11
Subject: Re[2]: [HACKERS] Re: [INTERFACES] Odbc parser error

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group