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 7452A9DC826 for ; Thu, 5 Jan 2006 11:28:03 -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 06561-04 for ; Thu, 5 Jan 2006 11:28:05 -0400 (AST) X-Greylist: delayed 02:48:46.103645 by SQLgrey- Received: from mailserver.kt-net.net (mailserver.kt-net.net [194.112.164.57]) by postgresql.org (Postfix) with ESMTP id 043B99DC88E for ; Thu, 5 Jan 2006 11:27:56 -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 k05FS67C007834; Thu, 5 Jan 2006 16:28:07 +0100 Received: from [192.168.12.129] (unknown [192.168.12.129]) by lhnoesrv.noe.lebenshilfe.at (Postfix) with ESMTP id 4DB7415BFC; Thu, 5 Jan 2006 16:27:50 +0100 (CET) Message-ID: <43BD3B0A.9090805@htl-steyr.ac.at> Date: Thu, 05 Jan 2006 16:28:10 +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: Pradeep Sharma , 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> In-Reply-To: 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/13 X-Sequence-Number: 14464 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 * > > 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 > so that your > message can get through to the mailing list cleanly > > > > > -- > Pradeep Sharma > In2M Corporation, > Mumbai > Mob.- +91-9892853803