pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matt Magoffin <postgresql.org@msqr.us>
To: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: INTERVAL parameter in PreparedStatement worked in
Date: Thu, 27 Oct 2005 17:36:42 -0700 (PDT)
Message-ID: <50488.219.89.94.58.1130459802.squirrel@msqr.us> (raw)
In-Reply-To: <436170E1.6000909@opencloud.com>
References: <50387.219.89.94.58.1130457365.squirrel@msqr.us>
	<436170E1.6000909@opencloud.com>

Thank you, the CAST worked perfectly.

-- m@

> "CAST (? AS INTERVAL)" should work.
>
> Or use org.postgresql.util.PGInterval:
>
>    stmt.setObject(1, new PGInterval("14 days"));
>
> -O




view thread (4+ messages)

Message-ID: <50488.219.89.94.58.1130459802.squirrel@msqr.us>
Permalink:  ../50488.219.89.94.58.1130459802.squirrel@msqr.us/
Also on:    postgresql.org/message-id/50488.219.89.94.58.1130459802.squirrel@msqr.us

 · 

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: postgresql.org@msqr.us, oliver@opencloud.com
  Subject: Re: INTERVAL parameter in PreparedStatement worked in
  In-Reply-To: <50488.219.89.94.58.1130459802.squirrel@msqr.us>
  References: <50387.219.89.94.58.1130457365.squirrel@msqr.us> <436170E1.6000909@opencloud.com> <50488.219.89.94.58.1130459802.squirrel@msqr.us>

* 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