X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DDD4C5363E for ; Sat, 9 Apr 2005 00:04:23 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 69481-06 for ; Fri, 8 Apr 2005 23:04:15 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id B1CD3535D1 for ; Sat, 9 Apr 2005 00:04:13 +0100 (BST) Received: (qmail 12978 invoked by uid 1112); 8 Apr 2005 23:04:16 -0000 Date: Fri, 8 Apr 2005 18:04:16 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Bruce Raggett Cc: pgsql-jdbc@postgresql.org Subject: Re: Version 8.0-310 and PreparedStatement.getParameterMetaData() In-Reply-To: <000801c53b78$cf036e30$1f593bcb@phicorp> Message-ID: References: <000801c53b78$cf036e30$1f593bcb@phicorp> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.012 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/52 X-Sequence-Number: 12659 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