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: pgsql-jdbc@postgresql.org
Subject: bug in getTime after insertRow with postgresql-8.1-404.jdbc3.jar
Date: Thu, 05 Jan 2006 13:39:31 +0100
Message-ID: <43BD1383.8090702@htl-steyr.ac.at> (raw)

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





view thread (4+ messages)  latest in thread

Message-ID: <43BD1383.8090702@htl-steyr.ac.at>
Permalink:  ../43BD1383.8090702@htl-steyr.ac.at/
Also on:    postgresql.org/message-id/43BD1383.8090702@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
  Subject: Re: bug in getTime after insertRow with postgresql-8.1-404.jdbc3.jar
  In-Reply-To: <43BD1383.8090702@htl-steyr.ac.at>
  References: <43BD1383.8090702@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