From Thomas.K.Hill@t-online.de Sat Aug 22 16:25:52 2015 Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZTBc8-00063x-At for pgsql-jdbc@arkaria.postgresql.org; Sat, 22 Aug 2015 16:25:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZTBc7-0001WU-BW for pgsql-jdbc@arkaria.postgresql.org; Sat, 22 Aug 2015 16:25:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZTBbb-0000wa-Iu for pgsql-jdbc@postgresql.org; Sat, 22 Aug 2015 16:25:19 +0000 Received: from mailout04.t-online.de ([194.25.134.18]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZTBbY-0002sT-Um for pgsql-jdbc@postgresql.org; Sat, 22 Aug 2015 16:25:18 +0000 Received: from fwd05.aul.t-online.de (fwd05.aul.t-online.de [172.20.27.149]) by mailout04.t-online.de (Postfix) with SMTP id 44885229E16 for ; Sat, 22 Aug 2015 18:25:15 +0200 (CEST) Received: from [192.168.178.22] (ZZ5lQwZ6rhN62Qj7cDia+LEgh7G8F9UD2YtWv4-WNxHmoSqy-SjGwCo-kAoS1y6Qb0@[84.163.87.134]) by fwd05.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1ZTBbU-32tUxs0; Sat, 22 Aug 2015 18:25:12 +0200 Message-ID: <55D8A282.4080709@t-online.de> Date: Sat, 22 Aug 2015 18:25:38 +0200 From: Thomas Hill User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Functions returning SETs and CallableStatment Interface Content-Type: multipart/alternative; boundary="------------030002000700000407090403" X-ID: ZZ5lQwZ6rhN62Qj7cDia+LEgh7G8F9UD2YtWv4-WNxHmoSqy-SjGwCo-kAoS1y6Qb0 X-TOI-MSGID: b04a190e-dfa8-40f9-8a1d-f6c2f353a517 X-Pg-Spam-Score: -2.8 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org This is a multi-part message in MIME format. --------------030002000700000407090403 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi, I would like a Java program that can be run in conjunction with an=20 Apache Database Server and an Oracle server to also run using postgresql = as backend. The program is using stored procedures and the=20 callableStatement interface for "all" database communication. If I understand the following statement from the documentation=20 correctly, this means my code will not work when dealing with stored=20 procedures returning restultsets. "Functions that return data as a set should not be called via the=20 |CallableStatement| interface, but instead should use the normal=20 |Statement| or |PreparedStatement| interfaces." So I was wondering if there are any plans for an implementation that=20 allows using the callableStatement interface also for functions=20 returning sets? Thanks Thomas --------------030002000700000407090403 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Hi,

I would like a Java program that can be run in conjunction with an Apache Database Server and an Oracle server to also run using postgresql as backend. The program is using stored procedures and the callableStatement interface for "all" database communication.

If I understand the following statement from the documentation correctly, this means my code will not work when dealing with stored procedures returning restultsets.
"Functions that return data as a set should not be called via the CallableStatement interface, but instead should use the normal Statement or PreparedStatement interfaces."

So I was wondering if there are any plans for an implementation that allows using the callableStatement interface also for functions returning sets?

Thanks
Thomas
--------------030002000700000407090403-- From pg@fastcrypt.com Wed Aug 26 22:38:30 2015 Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUjKw-0007X3-LK for pgsql-jdbc@arkaria.postgresql.org; Wed, 26 Aug 2015 22:38:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZUjKw-0003Pb-7G for pgsql-jdbc@arkaria.postgresql.org; Wed, 26 Aug 2015 22:38:30 +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 1ZUjKQ-0002qg-VV for pgsql-jdbc@postgresql.org; Wed, 26 Aug 2015 22:37:59 +0000 Received: from mail-ig0-x22f.google.com ([2607:f8b0:4001:c05::22f]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZUjKN-0001UE-Vt for pgsql-jdbc@postgresql.org; Wed, 26 Aug 2015 22:37:57 +0000 Received: by igbjg10 with SMTP id jg10so4321540igb.0 for ; Wed, 26 Aug 2015 15:37:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=o4pDQO+siDxlhDRHD2MBGJ7kM+9fE6PuzcO/4R6qrMQ=; b=JKf4Y/kyHt8QdpYgXZDzF+qA+YkN7cme4X5thkcAAIF+kGMrXKlzsuxmeLYcLrAdF+ LxM2XK8BEyMKmvGgkp9K7zlphhmRTazDNN9zrBZv20iAAdzmkCh/P9/05ll2kCmPmV16 C6/SsSGhsGas29silh3Sp7w2X9p5x8Ga2BEH4sHKCbANsLB72Wb3qtcKV2ZYw92mRC7W wn2ndIJJCXTQp0qbMrx/6+lsRx1icQ7zVHyJ0+YH6vHBWILP40eA2YzqOj9TUCKag1if JYlm4JFLRVu9VjWlKNwgzldSd+T0BTc7fcpNnni37idBUEWH+tWxXUEhvdfZfNbBV1fg LxKg== X-Received: by 10.50.79.164 with SMTP id k4mr7050301igx.16.1440628675257; Wed, 26 Aug 2015 15:37:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.43.201 with HTTP; Wed, 26 Aug 2015 15:37:35 -0700 (PDT) In-Reply-To: <55D8A282.4080709@t-online.de> References: <55D8A282.4080709@t-online.de> From: Dave Cramer Date: Wed, 26 Aug 2015 18:37:35 -0400 X-Google-Sender-Auth: EPo6y2RQfTzjA5fztDVF3owdVy4 Message-ID: Subject: Re: Functions returning SETs and CallableStatment Interface To: Thomas Hill Cc: List Content-Type: multipart/alternative; boundary=089e01294784712f2f051e3e805b X-Pg-Spam-Score: -2.4 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org --089e01294784712f2f051e3e805b Content-Type: text/plain; charset=UTF-8 Hi Thomas, Not really, stored procedures in postgresql aren't really stored procedures rather functions and are called by doing select funcname() ... Dave Dave Cramer dave.cramer(at)credativ(dot)ca http://www.credativ.ca On 22 August 2015 at 12:25, Thomas Hill wrote: > Hi, > > I would like a Java program that can be run in conjunction with an Apache > Database Server and an Oracle server to also run using postgresql as > backend. The program is using stored procedures and the callableStatement > interface for "all" database communication. > > If I understand the following statement from the documentation correctly, > this means my code will not work when dealing with stored procedures > returning restultsets. > "Functions that return data as a set should not be called via the > CallableStatement interface, but instead should use the normal Statement > or PreparedStatement interfaces." > > So I was wondering if there are any plans for an implementation that > allows using the callableStatement interface also for functions returning > sets? > > Thanks > Thomas > --089e01294784712f2f051e3e805b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Thomas,

Not really, stored procedure= s in postgresql aren't really stored procedures rather functions and ar= e called by doing select funcname() ...

Dave
=

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca

On 22 August 2015 at 12:25, Thomas Hill <Thomas.K.Hill@t-online.de> wrote:
=20 =20 =20
Hi,

I would like a Java program that can be run in conjunction with an Apache Database Server and an Oracle server to also run using postgresql as backend. The program is using stored procedures and the callableStatement interface for "all" database communicat= ion.

If I understand the following statement from the documentation correctly, this means my code will not work when dealing with stored procedures returning restultsets.
"Functions that return data as a set should not be called via the = CallableStatement interface, but instead should use the normal Statement or PreparedStatement= interfaces."

So I was wondering if there are any plans for an implementation that allows using the callableStatement interface also for functions returning sets?

Thanks
Thomas

--089e01294784712f2f051e3e805b--