Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 2E79B63275C for ; Fri, 12 Jun 2009 10:10:19 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 44865-09 for ; Fri, 12 Jun 2009 10:10:08 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail.postgresql.org (Postfix) with ESMTP id 79332632A62 for ; Fri, 12 Jun 2009 10:10:16 -0300 (ADT) Received: by leary.csoft.net (Postfix, from userid 1112) id C7590A181; Fri, 12 Jun 2009 09:10:13 -0400 (EDT) Date: Fri, 12 Jun 2009 09:10:13 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Johnny Luong cc: pgsql-jdbc@postgresql.org Subject: Re: PreparedStatements with PG specific data types. In-Reply-To: <4A31A4D7.3010800@trustcommerce.com> Message-ID: References: <4A31A4D7.3010800@trustcommerce.com> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL=0.005 X-Spam-Level: X-Archive-Number: 200906/59 X-Sequence-Number: 19723 On Thu, 11 Jun 2009, Johnny Luong wrote: > Is there a way to use PreparedStatements for specific data types such as > interval or inet? I have a JDBC application that I'm trying to migrate > from the V2 Protocol which allowed the arbitrary use of setObject() to > the V3 Protocol and if there was Java PG specific way or JDBC 3 way > (preferrable) that someone would describe, it would be appreciated. > setObject(i, "my value", Types.OTHER); Kris Jurka