From: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
To: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: How to solve invalid input for tyep timestamp problem?
Date: Wed, 02 Nov 2005 11:57:17 +0100
Message-ID: <1130929037.29028.22.camel@Panoramix> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: J.Kraaijeveld@Askesis.nl
Subject: Re: How to solve invalid input for tyep timestamp problem?
In-Reply-To: <1130929037.29028.22.camel@Panoramix>
References: <1130929037.29028.22.camel@Panoramix>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox