X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 971EC52A65 for ; Wed, 23 Mar 2005 21:49:13 +0000 (GMT) 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 41994-01 for ; Wed, 23 Mar 2005 21:49:10 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 749F552A54 for ; Wed, 23 Mar 2005 21:49:10 +0000 (GMT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1DEDis-0007Dq-00; Thu, 24 Mar 2005 09:49:06 +1200 Message-ID: <4241E44D.8030502@opencloud.com> Date: Thu, 24 Mar 2005 09:49:01 +1200 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0 (X11/20041228) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Igor Borisovsky Cc: pgsql-jdbc@postgresql.org Subject: Re: Stored proc returns RECORD & JDBC References: <200503232111.j2NLBDC30590@alexru.adsl.kis.ru> In-Reply-To: <200503232111.j2NLBDC30590@alexru.adsl.kis.ru> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/186 X-Sequence-Number: 12578 Igor Borisovsky wrote: > As you know we have to invoke the stored proc which returns RECORD in > the following manner: > > Select * from func() as (a datatype1, b datatype2…); > > There is no problem to execute such statement as PreparedStatement. > > But I need to use only CallableStatement. > > Does anyone know how to do it? That query will work fine directly in a CallableStatement -- it's a superset of PreparedStatement. If you meant "I need to use the {call} escape syntax in a CallableStatement to generate a query like this" then you can't do that with the current driver. -O