pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: CallableStatement.getParameterMetaData() throws exception for valid {call ...} statement
Date: Wed, 03 Jun 2015 09:01:10 +0200
Message-ID: <mkm8nm$i73$1@ger.gmane.org> (raw)
In-Reply-To: <556DDC6B.3010409@ttc-cmc.net>
References: <mkbrv5$vfc$1@ger.gmane.org>
	<556A1477.2050506@ttc-cmc.net>
	<mkillq$bni$1@ger.gmane.org>
	<556DDC6B.3010409@ttc-cmc.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

> 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



view thread (5+ messages)

Message-ID: <mkm8nm$i73$1@ger.gmane.org>
Permalink:  ../mkm8nm$i73$1@ger.gmane.org/
Also on:    postgresql.org/message-id/mkm8nm$i73$1@ger.gmane.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: spam_eater@gmx.net
  Subject: Re: CallableStatement.getParameterMetaData() throws exception for valid {call ...} statement
  In-Reply-To: <mkm8nm$i73$1@ger.gmane.org>
  References: <mkbrv5$vfc$1@ger.gmane.org> <556A1477.2050506@ttc-cmc.net> <mkillq$bni$1@ger.gmane.org> <556DDC6B.3010409@ttc-cmc.net> <mkm8nm$i73$1@ger.gmane.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox