pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Roland Walter <rwa@mosaic-ag.com>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: aydin.toprak@intengo.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: How to insert "date" as timestamp
Date: Thu, 13 Oct 2005 10:08:51 +0200
Message-ID: <434E1613.5040004@mosaic-ag.com> (raw)
In-Reply-To: <s34dbd65.062@gwmta.wicourts.gov>
References: <s34dbd65.062@gwmta.wicourts.gov>

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.
------------------------------------------------------




view thread (10+ messages)  latest in thread

Message-ID: <434E1613.5040004@mosaic-ag.com>
Permalink:  ../434E1613.5040004@mosaic-ag.com/
Also on:    postgresql.org/message-id/434E1613.5040004@mosaic-ag.com

 · 

reply

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: rwa@mosaic-ag.com, Kevin.Grittner@wicourts.gov, aydin.toprak@intengo.com
  Subject: Re: How to insert "date" as timestamp
  In-Reply-To: <434E1613.5040004@mosaic-ag.com>
  References: <s34dbd65.062@gwmta.wicourts.gov> <434E1613.5040004@mosaic-ag.com>

* 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