pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hpb@htl-steyr.ac.at <hpb@htl-steyr.ac.at>
To: Pradeep Sharma <pkpradeeps@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: bug in getTime after insertRow with postgresql-8.1-404.jdbc3.jar
Date: Thu, 05 Jan 2006 16:28:10 +0100
Message-ID: <43BD3B0A.9090805@htl-steyr.ac.at> (raw)
In-Reply-To: <fa5472f40601050522k1c1637a5p79a8806d51be6d7c@mail.gmail.com>
References: <43BD1383.8090702@htl-steyr.ac.at>
	<fa5472f40601050522k1c1637a5p79a8806d51be6d7c@mail.gmail.com>

Funny! If I use
postgresql-8.0-314.jdbc3.jar
it works fine
if I use
postgresql-8.1-404.jdbc3.jar
it shows this error.

May be that there is another issue than the driver ??????


hpb


Pradeep Sharma schrieb:
> Which driver you are currently using. I found the same issue with 
> postgresql-8.0-314.jdbc3.jar
> 
> After that I am using the latest driver from postgres site, and it seems 
> to be working fine.
> 
> One thing is sure it is a problem with the driver.
> 
> Pradeep
> 
> On 1/5/06, *hpb@htl-steyr.ac.at <mailto:hpb@htl-steyr.ac.at>* 
> <hpb@htl-steyr.ac.at <mailto:hpb@htl-steyr.ac.at>> wrote:
> 
>     hi,
> 
>     I suspect, I bumpt into a bug with insertRow.
> 
>     Here is my java code:
> 
>     -------------------------------snipp-------------------------------
>     System.out.println("millisec before
>     update:"+((java.sql.Time)rs.getTime(dbAttribute)).getTime());
> 
>     rs.updateTime(dbAttribute, new java.sql.Time( (
>     (java.util.Date)this.theValue).getTime()));
> 
>     System.out.println("millisec after
>     update:"+((java.sql.Time)rs.getTime(dbAttribute)).getTime());
> 
>     ..
>     ..
>     ..
> 
> 
>     System.out.println ("millisec before
>     insertRow:"+((java.sql.Time)this.db.rs.getTime("ist_von")).getTime());
> 
>     this.db.rs.insertRow(); //write the actual insert row to table
> 
>     System.out.println("millisec after
>     insertRow:"+((java.sql.Time)this.db.rs.getTime("ist_von")).getTime());
>     -------------------------------snipp-------------------------------
> 
>     the output is
> 
>     -------------------------------snipp-------------------------------
>     millisec before update:60000
>     millisec after update:60000
>     millisec before insertRow:60000
>     millisec after insertRow:3660000
>     -------------------------------snipp-------------------------------
> 
>     what indicates that after the insertRow my timezone is added CET -> one
>     hour more -> 3600000 msec
>     if I use postgresql-8.0-314.jdbc3.jar
>     it behaves normal ->
> 
>     -------------------------------snipp-------------------------------
>     millisec before update:60000
>     millisec after update:60000
>     millisec before insertRow:60000
>     millisec after insertRow:60000
>     -------------------------------snipp-------------------------------
> 
>     thanks for any help
> 
>     hpb
> 
> 
> 
>     ---------------------------(end of
>     broadcast)---------------------------
>     TIP 1: if posting/reading through Usenet, please send an appropriate
>            subscribe-nomail command to majordomo@postgresql.org
>     <mailto:majordomo@postgresql.org> so that your
>            message can get through to the mailing list cleanly
> 
> 
> 
> 
> -- 
> Pradeep Sharma
> In2M Corporation,
> Mumbai
> Mob.- +91-9892853803




view thread (4+ messages)  latest in thread

Message-ID: <43BD3B0A.9090805@htl-steyr.ac.at>
Permalink:  ../43BD3B0A.9090805@htl-steyr.ac.at/
Also on:    postgresql.org/message-id/43BD3B0A.9090805@htl-steyr.ac.at

 · 

reply

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: hpb@htl-steyr.ac.at, pkpradeeps@gmail.com
  Subject: Re: bug in getTime after insertRow with postgresql-8.1-404.jdbc3.jar
  In-Reply-To: <43BD3B0A.9090805@htl-steyr.ac.at>
  References: <43BD1383.8090702@htl-steyr.ac.at> <fa5472f40601050522k1c1637a5p79a8806d51be6d7c@mail.gmail.com> <43BD3B0A.9090805@htl-steyr.ac.at>

* 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