X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3BD193A42F3 for ; Mon, 29 Nov 2004 12:35:05 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 98212-09 for ; Mon, 29 Nov 2004 12:34:58 +0000 (GMT) Received: from mail.ppi.de (neo.ppi.de [194.180.18.10]) by svr1.postgresql.org (Postfix) with ESMTP id 1DD123A50DA for ; Mon, 29 Nov 2004 12:34:58 +0000 (GMT) Received: from max.ppinet.de (max.ppinet.de [172.31.43.64]) by mail.ppi.de (8.11.3/8.11.3) with ESMTP id iATCYuJ06182 for ; Mon, 29 Nov 2004 13:34:57 +0100 Received: by max.ppinet.de with Internet Mail Service (5.5.2653.19) id ; Mon, 29 Nov 2004 13:34:56 +0100 Message-ID: <6D48B8403D926449BDE8440EC7EEC46D021F2026@max.ppinet.de> From: Antje.Stejskal@ppi.de To: pgsql-jdbc@postgresql.org Subject: Bug in JDBC-Driver? Date: Mon, 29 Nov 2004 13:34:55 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.3 tagged_above=0.0 required=5.0 tests=NO_REAL_NAME X-Spam-Level: X-Archive-Number: 200411/224 X-Sequence-Number: 11646 Hi all, I am testing Postgres 8.0.0 beta4 on Windows 2000. I checked the changelog but could not find a corresponding topic. I am facing a time problem with timestamp handling. Here is what I did: I insert data via JDBC. The timestamp value in the prepared statement is still '2003-08-19 11:40:08.0' as the debugger (of Eclipse) confirms. Inserted in the database gets a tiemstamp 2003-08-19 09:40:08.0'. CURRENT_TIME of DB-Server is an hour back to server time. Before I do the insert I do a select to check if such data is already in the DB. The select does not change the timestamp - so program goes in insert method. I used the JDBC-Driver pg80b1.308.jdbc3.jar coming with the German postgresql-8.0.0-beta4.msi Windows says RevisionNo: {6ABA084E-D3FB-4253-95FF-68A0A066F69B}, if that is of any help? Today I tried my program using the JDBC-Driver of Postgres 7.4.6 (pg74.215.jdbc3.jar). With that JDBC- driver everything works fine. Is there any parameter I missed to set in version 8, or is it a bug? Regards, Antje Stejskal