X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 51B04DB107 for ; Thu, 27 Oct 2005 21:37:57 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 08377-09 for ; Fri, 28 Oct 2005 00:37:53 +0000 (GMT) Received: from mail5.dslextreme.com (mail5.dslextreme.com [66.51.199.81]) by svr1.postgresql.org (Postfix) with SMTP id 78345DB14C for ; Thu, 27 Oct 2005 21:37:55 -0300 (ADT) Received: (qmail 17121 invoked from network); 28 Oct 2005 00:37:41 -0000 Received: from unknown (HELO x1000.msqr.us) (66.245.216.57) by mail5.dslextreme.com with (EDH-RSA-DES-CBC3-SHA encrypted) SMTP; Thu, 27 Oct 2005 17:37:41 -0700 Received: from x1000.msqr.us (x1000.msqr.us [127.0.0.1]) by x1000.msqr.us (8.13.1/8.13.1) with ESMTP id j9S0ahCb029023 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 27 Oct 2005 17:36:43 -0700 Received: (from apache@localhost) by x1000.msqr.us (8.13.1/8.13.1/Submit) id j9S0agaC029022; Thu, 27 Oct 2005 17:36:42 -0700 Received: from 219.89.94.58 (SquirrelMail authenticated user matt); by msqr.us with HTTP; Thu, 27 Oct 2005 17:36:42 -0700 (PDT) Message-ID: <50488.219.89.94.58.1130459802.squirrel@msqr.us> In-Reply-To: <436170E1.6000909@opencloud.com> References: <50387.219.89.94.58.1130457365.squirrel@msqr.us> <436170E1.6000909@opencloud.com> Date: Thu, 27 Oct 2005 17:36:42 -0700 (PDT) Subject: Re: INTERVAL parameter in PreparedStatement worked in From: "Matt Magoffin" To: "Oliver Jowett" Cc: pgsql-jdbc@postgresql.org User-Agent: SquirrelMail/1.4.3a-12.EL4 X-Mailer: SquirrelMail/1.4.3a-12.EL4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.326 required=5 tests=[AWL=-0.326, SUBJ_HAS_SPACES=0.651] X-Spam-Score: 0.326 X-Spam-Level: X-Archive-Number: 200510/141 X-Sequence-Number: 14072 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