From: Oliver Jowett <oliver@opencloud.com>
To: Dario V. Fassi <software@sistemat.com.ar>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: Timestamp Question
Date: Mon, 12 Jul 2004 12:50:00 +1200
Message-ID: <40F1E038.20609@opencloud.com> (raw)
In-Reply-To: <40F1DFA1.20407@sistemat.com.ar>
References: <40F012E4.3000001@markhamdirect.com>
<40F02556.1070109@sistemat.com.ar>
<1089552466.11544.311.camel@localhost.localdomain>
<40F19294.8090700@sistemat.com.ar>
<40F1D5D8.2000205@opencloud.com>
<40F1DFA1.20407@sistemat.com.ar>
Dario V. Fassi wrote:
> You are seeing it:
>
> > test=> select '2004-07-10 12:59:59.123'::timestamp(6);
> > timestamp -------------------------
> > 2004-07-10 12:59:59.123
>
> I suggest that is cross DBs (eg. DB2 / PgSql etc) , the above
> situation cause troubles.
Sounds like it's not a JDBC problem though -- perhaps you should take it
up on pgsql-general or pgsql-sql?
> ** From a Jdbc client can see rows like:
> 2004-07-10 12:59:59.123
>
> in plase of:
>
> 2004-07-10 12:59:59.12300
> or
> 2004-07-10 12:59:59.00123
If you're using JDBC, you should be using ResultSet.getTimestamp(), not
interpreting the strings directly. Do you have a testcase that uses
getTimestamp() and sees an incorrect value?
-O
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: oliver@opencloud.com, software@sistemat.com.ar
Subject: Re: Timestamp Question
In-Reply-To: <40F1E038.20609@opencloud.com>
References: <40F012E4.3000001@markhamdirect.com> <40F02556.1070109@sistemat.com.ar> <1089552466.11544.311.camel@localhost.localdomain> <40F19294.8090700@sistemat.com.ar> <40F1D5D8.2000205@opencloud.com> <40F1DFA1.20407@sistemat.com.ar> <40F1E038.20609@opencloud.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox