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 BEAB2D84B5 for ; Thu, 13 Oct 2005 05:13:57 -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 16886-01 for ; Thu, 13 Oct 2005 08:13:53 +0000 (GMT) Received: from mosaic02.mosaic.de (mosaic02.mosaic.de [195.247.16.18]) by svr1.postgresql.org (Postfix) with ESMTP id B8DB1D849E for ; Thu, 13 Oct 2005 05:13:53 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mosaic02.mosaic.de (Postfix) with ESMTP id C4B76778C8; Thu, 13 Oct 2005 10:14:53 +0200 (CEST) Received: from mosaic02.mosaic.de ([127.0.0.1]) by localhost (mosaic02.mosaic-ag.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23912-19; Thu, 13 Oct 2005 10:14:51 +0200 (CEST) Received: by mosaic02.mosaic.de (Postfix, from userid 10) id AD89777912; Thu, 13 Oct 2005 10:14:21 +0200 (CEST) Received: from [172.17.1.87] (aupc287.mosaic-ag.com [172.17.1.87]) by mailsrv.mosaic-ag.com (Postfix) with ESMTP id 3F87856292; Thu, 13 Oct 2005 10:08:51 +0200 (CEST) Message-ID: <434E1613.5040004@mosaic-ag.com> Date: Thu, 13 Oct 2005 10:08:51 +0200 From: Roland Walter User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7.5) Gecko/20041217 X-Accept-Language: de-DE,de,en MIME-Version: 1.0 To: Kevin Grittner Cc: aydin.toprak@intengo.com, pgsql-jdbc@postgresql.org Subject: Re: How to insert "date" as timestamp References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: mosaic-ag.com X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.073 required=5 tests=[AWL=0.073] X-Spam-Level: X-Archive-Number: 200510/51 X-Sequence-Number: 13982 Kevin Grittner schrieb: > 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. > You should have mentioned, that for the correct use of timestamp with timezone, he needs the jdbc-driver from the CVS. As far as I know, the bugfixes are not in the released drivers, yet. And I would use TIMESTAMP without a time zone, in the case I know all database clients are in the same time zone. Regards, Roland. -- Roland Walter phone: +49 (0) 22 25 / 88 2-41 1 MOSAIC SOFTWARE AG fax: +49 (0) 22 25 / 88 2-20 1 Am Pannacker 3 mailto: rwa (at) mosaic-ag (dot) com D-53340 Meckenheim http://www.mosaic-ag.com ------- L E G A L D I S C L A I M E R --------- Die Informationen in dieser Nachricht sind vertraulich und ausschliesslich fuer den Adressaten bestimmt. Kenntnisnahme durch Dritte ist unzulaessig. Die Erstellung von Kopien oder das Weiterleiten an weitere, nicht originaere und benannte Adressaten ist nicht vorgesehen und kann ungesetzlich sein. Die Meinungen in dieser Nachricht stellen lediglich die Meinungen des Senders dar. Falls Sie vermuten, dass diese Nachricht veraendert wurde, setzen Sie sich mit dem Absender in Verbindung. Der Absender uebernimmt ohne weitere Ueberpruefung keine Verantwortung fuer die Richtigkeit und Vollstaendigkeit des Inhalts. Unbefugte Empfaenger werden gebeten, die Vertraulichkeit der Nachricht zu wahren und den Absender sofort ueber einen Uebertragungsfehler zu informieren. ------------------------------------------------------