X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C85E3D6887 for ; Wed, 2 Nov 2005 06:57:18 -0400 (AST) 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 89062-02 for ; Wed, 2 Nov 2005 10:57:15 +0000 (GMT) Received: from obelix.askesis.nl (laudanum.demon.nl [82.161.125.16]) by svr1.postgresql.org (Postfix) with ESMTP id 589FED6891 for ; Wed, 2 Nov 2005 06:57:15 -0400 (AST) Received: obelix.askesis.nl 172.31.0.1 from 172.31.1.8 172.31.1.8 via HTTP with MS-WebStorage 6.0.6249 Received: from Panoramix by obelix.askesis.nl; 02 Nov 2005 11:57:17 +0100 Subject: How to solve invalid input for tyep timestamp problem? From: Joost Kraaijeveld To: "pgsql-jdbc@postgresql.org" Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Wed, 02 Nov 2005 11:57:17 +0100 Message-Id: <1130929037.29028.22.camel@Panoramix> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.072 required=5 tests=[AWL=0.071, UNPARSEABLE_RELAY=0.001] X-Spam-Score: 0.072 X-Spam-Level: X-Archive-Number: 200511/5 X-Sequence-Number: 14103 Hi, I want log4j to log in a PostgreSQL database. Log34j uses "2005-11-02 11:49:57,844" as it's timestamp format. I used TIMESTAMP as a columntype but apparenty that is not the correct type: java.sql.SQLException: ERROR: invalid input syntax for type timestamp: "2005-11-02 11:49:57,844" What should be the type I should use for the column? -- Groeten, Joost Kraaijeveld Askesis B.V. Molukkenstraat 14 6524NB Nijmegen tel: 024-3888063 / 06-51855277 fax: 024-3608416 e-mail: J.Kraaijeveld@Askesis.nl web: www.askesis.nl