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 E75349DC812 for ; Thu, 5 Jan 2006 08:39:18 -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 69219-06 for ; Thu, 5 Jan 2006 08:39:21 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id D1CDD9DC865 for ; Thu, 5 Jan 2006 08:39:16 -0400 (AST) Received: from mailserver.kt-net.net (mailserver.kt-net.net [194.112.164.57]) by svr4.postgresql.org (Postfix) with ESMTP id 96F725AF071 for ; Thu, 5 Jan 2006 12:39:17 +0000 (GMT) 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 k05CdSAu016070 for ; Thu, 5 Jan 2006 13:39:28 +0100 Received: from [192.168.12.129] (unknown [192.168.12.129]) by lhnoesrv.noe.lebenshilfe.at (Postfix) with ESMTP id C98BE15BFC for ; Thu, 5 Jan 2006 13:39:11 +0100 (CET) Message-ID: <43BD1383.8090702@htl-steyr.ac.at> Date: Thu, 05 Jan 2006 13:39:31 +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: pgsql-jdbc@postgresql.org Subject: bug in getTime after insertRow with postgresql-8.1-404.jdbc3.jar 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 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200601/6 X-Sequence-Number: 14457 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