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 4D34252876 for ; Wed, 25 May 2005 03:48:58 -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 12468-02 for ; Wed, 25 May 2005 06:48:52 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 70299528A7 for ; Wed, 25 May 2005 03:48:51 -0300 (ADT) Received: (qmail 28708 invoked by uid 1112); 25 May 2005 06:48:53 -0000 Date: Wed, 25 May 2005 01:48:53 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: hiuguis@iteso.mx Cc: pgsql-jdbc@postgresql.org Subject: Re: Problem catching multiple values In-Reply-To: <1116969045.42939855b95f0@iteso.mx> Message-ID: References: <1116969045.42939855b95f0@iteso.mx> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.011 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/98 X-Sequence-Number: 12929 On Tue, 24 May 2005 hiuguis@iteso.mx wrote: > Im having an problem when I try to catch multiple values from an SETOF > float8 pgsql function invoked from java. This is the message that I get: CallableStatements cannot be used for SETOF functions, only refcursor returning functions. It is best to call this with a normal PreparedStatement or Statement that returns a ResultSet in the standard fashion: SELECT * FROM mysrf(); Kris Jurka