Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U2k6Y-0007i4-Aj for pgsql-jdbc@arkaria.postgresql.org; Tue, 05 Feb 2013 15:06:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U2k6X-00080y-Ch for pgsql-jdbc@arkaria.postgresql.org; Tue, 05 Feb 2013 15:06:37 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U2k6V-00080q-GW for pgsql-jdbc@postgresql.org; Tue, 05 Feb 2013 15:06:35 +0000 Received: from plane.gmane.org ([80.91.229.3]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U2k6S-0005B8-Ty for pgsql-jdbc@postgresql.org; Tue, 05 Feb 2013 15:06:34 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U2k6f-0001V4-Vy for pgsql-jdbc@postgresql.org; Tue, 05 Feb 2013 16:06:45 +0100 Received: from 217.110.94.121 ([217.110.94.121]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Feb 2013 16:06:45 +0100 Received: from spam_eater by 217.110.94.121 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Feb 2013 16:06:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: Timestamp vs. Java Date/Timestamp Date: Tue, 05 Feb 2013 16:07:09 +0100 Lines: 13 Message-ID: References: <1360043227.14635.9.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 217.110.94.121 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 In-Reply-To: <1360043227.14635.9.camel@localhost> X-Pg-Spam-Score: 2.2 (++) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org 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. -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc