Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a78j0-0000yC-2u for pgsql-general@arkaria.postgresql.org; Thu, 10 Dec 2015 21:26:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a78iz-0007lA-GO for pgsql-general@arkaria.postgresql.org; Thu, 10 Dec 2015 21:26:05 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a78iy-0007ig-Fy for pgsql-general@postgresql.org; Thu, 10 Dec 2015 21:26:04 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a78iv-0001zz-Bc for pgsql-general@postgresql.org; Thu, 10 Dec 2015 21:26:03 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 02E1D20D52 for ; Thu, 10 Dec 2015 16:25:59 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Thu, 10 Dec 2015 16:26:00 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=ysoXyaijztwp1LQhWV3OehJM41Q=; b=Q7tcn9 QMmwjjFy4EeD9uh/PlQqmD0sz/sMSKSbPk8A+u56WdMWuzK2ujyYt6QEg7ow+VOS 695OqC+8FisCjcNeuHP78Xc/FkoIAE22MQ6ZqJrmK2D1vkVaAbayJgjEMxpmvOqp qtN/P38hfL9i8O53PS2HPuK34O46brTBpTvDc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=ysoXyaijztwp1LQ hWV3OehJM41Q=; b=JpjsK8RRbkm/CmrEAisdarEc/JFPpML6IlEmKc6pubHtkic szwAOJQyS9kScq0jt1HBKl1QBhcGu5FIMaO7p71vjyYNZHBKYH/TfpsBjvMjQF0O abMrZjAjVS32Oswb/HMuWYQxf/rooGut8zKFcI3gv/uOireNqcou4/9k9cBU= X-Sasl-enc: u/CbS6IBH/9hxuJFa5NH1JBc/VMMT7mvTtC2gRaY9iUV 1449782759 Received: from [192.168.1.2] (65-102-182-223.tukw.qwest.net [65.102.182.223]) by mail.messagingengine.com (Postfix) with ESMTPA id 266736800F3; Thu, 10 Dec 2015 16:25:59 -0500 (EST) Subject: Re: [JDBC] plpgsql function with RETURNS SETOF refcursor in JAVA To: "Corradini, Carlos" , pgsql-jdbc@postgresql.org, pgsql-general@postgresql.org References: <2A8F1D1266E80A4C8E5DF89F3042279711936AFC@B1842ZACS0046.correo.local> Cc: books@ejurka.com From: Adrian Klaver Message-ID: <5669EDC8.9070805@aklaver.com> Date: Thu, 10 Dec 2015 13:25:28 -0800 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <2A8F1D1266E80A4C8E5DF89F3042279711936AFC@B1842ZACS0046.correo.local> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On 12/10/2015 05:38 AM, Corradini, Carlos wrote: > Dear Gurus : > > First let me say hello from Buenos Aires, Argentina. I > took this emails addresses from internet ( page www.postgresql.org > ) > > Now I will try to explain which is my problem ( excuse > my poor level of English, please ). I have a Java application that must > read a data provided by two ( 2 ) cursors returned by a function stored > in a database. I know to retrieve data if the function have one ( 1 ) > cursor, but with two I can’t. I will very pleased if any of you, in your > free time of course, can explain me how, inside the java program, after > connecting via jdbc to the database, I extract the data returned by the > second cursor. Can you provide the function code that is returning the cursors? > > Many thanks ( muchas gracias ) and I wait for yours > replies as soon as you can. > -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general