From phicorp@iinet.net.au Thu Apr 7 13:50:50 2005 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 32BA853B0F for ; Thu, 7 Apr 2005 14:50:50 +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 79351-05 for ; Thu, 7 Apr 2005 13:50:48 +0000 (GMT) Received: from mail.iinet.net.au (mail-04.iinet.net.au [203.59.3.36]) by svr1.postgresql.org (Postfix) with SMTP id DF49253B1C for ; Thu, 7 Apr 2005 14:50:46 +0100 (BST) Received: (qmail 20991 invoked from network); 7 Apr 2005 13:50:49 -0000 Received: from unknown (HELO phicorp) (203.59.89.31) by mail.iinet.net.au with SMTP; 7 Apr 2005 13:50:49 -0000 Message-ID: <000801c53b78$cf036e30$1f593bcb@phicorp> From: "Bruce Raggett" To: Subject: Version 8.0-310 and PreparedStatement.getParameterMetaData() Date: Thu, 7 Apr 2005 21:50:50 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0005_01C53BBB.DD008890" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.402 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, HTML_60_70, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200504/47 X-Sequence-Number: 12654 This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C53BBB.DD008890 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello All, 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? Many thanks, Bruce. ------=_NextPart_000_0005_01C53BBB.DD008890 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello All,
 
I have used PreparedStatement.getParameterMetaData() with version 8.0-310 = and=20 obtained the following results:
(1) parameterMetaData.getParameterCount() worked correctly.
(2) parameterMetaData.getParameterType() worked correctly.
(3) parameterMetaData.getParameterClassName() returned null instead = of=20 java.lang.String.
 
Does the third result above indicate a = bug, or=20 is this result expected at this stage of development?
 
Many thanks,
Bruce.
 
------=_NextPart_000_0005_01C53BBB.DD008890-- From books@ejurka.com Fri Apr 8 23:04:23 2005 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 From books@ejurka.com Mon Apr 11 05:25:39 2005 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 A3CF5535D4 for ; Mon, 11 Apr 2005 02:25:39 -0300 (ADT) 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 29281-02 for ; Mon, 11 Apr 2005 05:25:38 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 5E70C535AC for ; Mon, 11 Apr 2005 02:25:38 -0300 (ADT) Received: (qmail 4877 invoked by uid 1112); 11 Apr 2005 05:25:38 -0000 Date: Mon, 11 Apr 2005 00:25:38 -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: 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/61 X-Sequence-Number: 12668 On Fri, 8 Apr 2005, Kris Jurka wrote: > On Thu, 7 Apr 2005, Bruce Raggett wrote: > > [ParameterMetaData.getParameterClassName() doesn't work] > > I suppose it should throw an Exception instead of failing silently, but > getting it to work can't be that hard. I've made implemented this method in the newly released 8.1dev-400 build. Kris Jurka From phicorp@iinet.net.au Mon Apr 11 11:02:00 2005 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 D366953805 for ; Mon, 11 Apr 2005 08:02:00 -0300 (ADT) 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 71307-03 for ; Mon, 11 Apr 2005 11:01:48 +0000 (GMT) Received: from mail.iinet.net.au (mail-04.iinet.net.au [203.59.3.36]) by svr1.postgresql.org (Postfix) with SMTP id 176E653830 for ; Mon, 11 Apr 2005 08:01:45 -0300 (ADT) Received: (qmail 19209 invoked from network); 11 Apr 2005 11:01:47 -0000 Received: from unknown (HELO phicorp) (203.59.157.224) by mail.iinet.net.au with SMTP; 11 Apr 2005 11:01:47 -0000 Message-ID: <000601c53e85$dd7ff450$e09d3bcb@phicorp> From: "Bruce Raggett" To: References: <000801c53b78$cf036e30$1f593bcb@phicorp> Subject: Re: Version 8.0-310 and PreparedStatement.getParameterMetaData() Date: Mon, 11 Apr 2005 19:01:50 +0800 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.294 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE X-Spam-Level: X-Archive-Number: 200504/64 X-Sequence-Number: 12671 Hello Kris, I have rerun my test using the newly released 8.1dev-400 build and ParameterMetaData.getParameterClassName() now returns a valid class. Thank you very much for your efforts. Bruce. ----- Original Message ----- From: "Kris Jurka" To: "Bruce Raggett" Cc: Sent: Monday, April 11, 2005 1:25 PM Subject: Re: [JDBC] Version 8.0-310 and PreparedStatement.getParameterMetaData() > > > On Fri, 8 Apr 2005, Kris Jurka wrote: > >> On Thu, 7 Apr 2005, Bruce Raggett wrote: >> > [ParameterMetaData.getParameterClassName() doesn't work] >> >> I suppose it should throw an Exception instead of failing silently, but >> getting it to work can't be that hard. > > I've made implemented this method in the newly released 8.1dev-400 build. > > Kris Jurka > > ---------------------------(end of broadcast)--------------------------- > TIP 8: explain analyze is your friend > > > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.308 / Virus Database: 266.9.5 - Release Date: 7/04/2005 > >