pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: hpb@htl-steyr.ac.at <hpb@htl-steyr.ac.at>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: bug in getTime after insertRow with postgresql-8.1-404.jdbc3.jar
Date: Fri, 06 Jan 2006 00:51:04 +0000
Message-ID: <43BDBEF8.1000708@opencloud.com> (raw)
In-Reply-To: <43BD1383.8090702@htl-steyr.ac.at>
References: <43BD1383.8090702@htl-steyr.ac.at>

hpb@htl-steyr.ac.at wrote:

> 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());

Is the data actually inserted to the database correctly?

If you re-query it via a different resultset, is it correct?

(IIRC, insertRow() directly updates the Java-side resultset without 
requerying the DB, which is why I ask -- I suspect there will be a bug 
in that update code)

-O



view thread (4+ messages)  latest in thread

Message-ID: <43BDBEF8.1000708@opencloud.com>
Permalink:  ../43BDBEF8.1000708@opencloud.com/
Also on:    postgresql.org/message-id/43BDBEF8.1000708@opencloud.com

 · 

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: oliver@opencloud.com, hpb@htl-steyr.ac.at
  Subject: Re: bug in getTime after insertRow with postgresql-8.1-404.jdbc3.jar
  In-Reply-To: <43BDBEF8.1000708@opencloud.com>
  References: <43BD1383.8090702@htl-steyr.ac.at> <43BDBEF8.1000708@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