Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z02g9-0002jQ-Sy for pgsql-jdbc@arkaria.postgresql.org; Wed, 03 Jun 2015 07:01:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z02g9-0008VB-AA for pgsql-jdbc@arkaria.postgresql.org; Wed, 03 Jun 2015 07:01:33 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Z02g8-0008V4-Ap for pgsql-jdbc@postgresql.org; Wed, 03 Jun 2015 07:01:32 +0000 Received: from plane.gmane.org ([80.91.229.3]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Z02g0-0006oz-Kt for pgsql-jdbc@postgresql.org; Wed, 03 Jun 2015 07:01:31 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Z02ft-0004Wx-Dn for pgsql-jdbc@postgresql.org; Wed, 03 Jun 2015 09:01:17 +0200 Received: from 185.40.248.10 ([185.40.248.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Jun 2015 09:01:17 +0200 Received: from spam_eater by 185.40.248.10 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Jun 2015 09:01:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: CallableStatement.getParameterMetaData() throws exception for valid {call ...} statement Date: Wed, 03 Jun 2015 09:01:10 +0200 Lines: 18 Message-ID: References: <556A1477.2050506@ttc-cmc.net> <556DDC6B.3010409@ttc-cmc.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 185.40.248.10 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 In-Reply-To: <556DDC6B.3010409@ttc-cmc.net> X-Pg-Spam-Score: -1.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 > According to the Java 7 API it seems this interface is mainly associated with > PreparedStatements and lucky to get any information from a CallableStatement. Well a CallableStatement *is* a PreparedStatement > From the context of your question, it seems what you are looking for is the > information about the function, parameters, etc. When I first looked at this > I searched the database for the newly created sum_n_product() function to > find information about it. It seemed to be abscured. Perhaps that information > stored in the database is the answer to your question rather then this interface. Yes, that's what I'm doing when getParameterMetaData() fails. But it makes things a bit more complicated This is part of my SQL client that supports multiple DBMS and offers a DBMS independent way to call procedures that have OUT parameters. I was just curious. Many JDBC drivers don't even implement getParameterMetaData() but the error message in Postgres' exception is misleading because there is such a function - and the fact that it works _after_ registering an OUT parameter makes it even more confusing. Thomas -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc