X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id A042C9DCA6A for ; Thu, 5 Jan 2006 21:50:16 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 60942-05 for ; Thu, 5 Jan 2006 21:50:19 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mailserver.kt-net.net (mailserver.kt-net.net [194.112.164.57]) by postgresql.org (Postfix) with ESMTP id 392A89DC827 for ; Thu, 5 Jan 2006 21:50:12 -0400 (AST) Received: from lhnoesrv.noe.lebenshilfe.at (194-112-138-122.profinet.at [194.112.138.122] (may be forged)) by mailserver.kt-net.net (8.13.2/8.13.2/Debian-1) with ESMTP id k061oFAJ017886; Fri, 6 Jan 2006 02:50:15 +0100 Received: from [192.168.12.129] (unknown [192.168.12.129]) by lhnoesrv.noe.lebenshilfe.at (Postfix) with ESMTP id 831B615BFC; Fri, 6 Jan 2006 02:49:59 +0100 (CET) Message-ID: <43BDCCFC.6050105@htl-steyr.ac.at> Date: Fri, 06 Jan 2006 02:50:52 +0100 From: "hpb@htl-steyr.ac.at" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7.12) Gecko/20050915 X-Accept-Language: de-at, en-us, en MIME-Version: 1.0 To: Oliver Jowett Cc: "hpb@htl-steyr.ac.at" , pgsql-jdbc@postgresql.org Subject: Re: bug in getTime after insertRow with postgresql-8.1-404.jdbc3.jar References: <43BD1383.8090702@htl-steyr.ac.at> <43BDBEF8.1000708@opencloud.com> In-Reply-To: <43BDBEF8.1000708@opencloud.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-KT-Net-MailScanner: Found to be clean X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200601/22 X-Sequence-Number: 14473 The data is inserted in the database correctly! I was thinking about a workaround by doing another select. I didn't I posted in the newsgroup ;-) hpb Oliver Jowett schrieb: > 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