Re: Timestamp vs. Java Date/Timestamp - Mailing list pgsql-jdbc

From Thomas Kellerer
Subject Re: Timestamp vs. Java Date/Timestamp
Date
Msg-id ker759$b4a$1@ger.gmane.org
Whole thread Raw
In response to Timestamp vs. Java Date/Timestamp  (Andreas Reichel <andreas@manticore-projects.com>)
List 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.




pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: Timestamp vs. Java Date/Timestamp
Next
From: Andreas Reichel
Date:
Subject: Re: Timestamp vs. Java Date/Timestamp