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--