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 CA82AD84B1 for ; Thu, 13 Oct 2005 03:50:30 -0300 (ADT) 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 95508-02 for ; Thu, 13 Oct 2005 06:50:28 +0000 (GMT) Received: from gwmta.wicourts.gov (gwmta.wicourts.gov [165.219.244.91]) by svr1.postgresql.org (Postfix) with ESMTP id 9CD70D84AC for ; Thu, 13 Oct 2005 03:50:28 -0300 (ADT) Received: from Courts-MTA by gwmta.wicourts.gov with Novell_GroupWise; Thu, 13 Oct 2005 01:50:29 -0500 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.4 Date: Thu, 13 Oct 2005 01:50:16 -0500 From: "Kevin Grittner" To: , Subject: Re: How to insert "date" as timestamp Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1253 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.003 required=5 tests=[AWL=0.003] X-Spam-Level: X-Archive-Number: 200510/50 X-Sequence-Number: 13981 Hi, Is your object a java.util.Date, a java.sql.Date, or a java.sql.Timestamp? Do you want the column in the database to store only a date, or combined date and time? If you want the column to store a combined date and time, you should define it as TIMESTAMP WITH TIME ZONE unless you have some very unusual need to have a timestamp that represents a different moment in each time zone. Some sample code and your exception (with stack trace) would help, too. -Kevin >>> Ayd*n Toprak 10/13/05 1:20 AM >>> hii, I am newbie for jdbc-postgres and looking for some help about timestamp=20 type of posgresql..... my porgram makes a data object, and then insert this object to the db. however, I couldnt been able to insert date object directly to the db = as=20 timestamp ... do I making something wrong ? .. or is there another type to keep full=20 date of java, in the Postgresql Db. Thank You. ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend