Re: Timestamp vs. Java Date/Timestamp

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Timestamp vs. Java Date/Timestamp
Date: 2013-02-05 15:07:09
Message-ID: ker759$b4a$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Andreas Reichel, 05.02.2013 06:47:
> Dear List,
>
> the last day I had a hard time figuring out how to hand over timestamps
> using prepared statements.
>
> What is the correct way to hand over a Java Date parameter (avoiding the
> double String manipulation)?

Pass an instance of java.sql.Timestamp using the setTimestamp() method.

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Andreas Reichel 2013-02-06 02:38:21 Re: Timestamp vs. Java Date/Timestamp
Previous Message Dave Cramer 2013-02-05 14:42:29 Re: Timestamp vs. Java Date/Timestamp