Skip site navigation (1) Skip section navigation (2)

Re: Version 8.0-310 and PreparedStatement.getParameterMetaData()

From: Kris Jurka <books(at)ejurka(dot)com>
To: Bruce Raggett <phicorp(at)iinet(dot)net(dot)au>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Version 8.0-310 and PreparedStatement.getParameterMetaData()
Date: 2005-04-08 23:04:16
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc

On Thu, 7 Apr 2005, Bruce Raggett wrote:

> I have used PreparedStatement.getParameterMetaData() with version
> 8.0-310 and obtained the following results:
> (1) parameterMetaData.getParameterCount() worked correctly.
> (2) parameterMetaData.getParameterType() worked correctly.
> (3) parameterMetaData.getParameterClassName() returned null instead of
> java.lang.String.
> Does the third result above indicate a bug, or is this result expected
> at this stage of development?

Both.  It clearly doesn't work, so it's a bug, but at the same time the 
method is hardcoded to always to return null, so it's missing code instead 
of non-working code.  I suppose it should throw an Exception instead of 
failing silently, but getting it to work can't be that hard.

Kris Jurka

In response to


pgsql-jdbc by date

Next:From: Kris JurkaDate: 2005-04-08 23:06:47
Subject: Re: Updatable resultset with join query.
Previous:From: Oliver JowettDate: 2005-04-08 23:02:26
Subject: Re: Exception "The connection attempt failed." (didn't find

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group