pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedVersion 8.0-310 and PreparedStatement.getParameterMetaData()
4+ messages / 2 participants
[nested] [flat]
* Version 8.0-310 and PreparedStatement.getParameterMetaData()
@ 2005-04-07 13:50 Bruce Raggett <phicorp@iinet.net.au>
0 siblings, 1 reply; 4+ messages in thread
From: Bruce Raggett @ 2005-04-07 13:50 UTC (permalink / raw)
To: pgsql-jdbc
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.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Version 8.0-310 and PreparedStatement.getParameterMetaData()
@ 2005-04-08 23:04 Kris Jurka <books@ejurka.com>
parent: Bruce Raggett <phicorp@iinet.net.au>
0 siblings, 1 reply; 4+ messages in thread
From: Kris Jurka @ 2005-04-08 23:04 UTC (permalink / raw)
To: Bruce Raggett <phicorp@iinet.net.au>; +Cc: 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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Version 8.0-310 and PreparedStatement.getParameterMetaData()
@ 2005-04-11 05:25 Kris Jurka <books@ejurka.com>
parent: Kris Jurka <books@ejurka.com>
0 siblings, 1 reply; 4+ messages in thread
From: Kris Jurka @ 2005-04-11 05:25 UTC (permalink / raw)
To: Bruce Raggett <phicorp@iinet.net.au>; +Cc: pgsql-jdbc
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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Version 8.0-310 and PreparedStatement.getParameterMetaData()
@ 2005-04-11 11:01 Bruce Raggett <phicorp@iinet.net.au>
parent: Kris Jurka <books@ejurka.com>
0 siblings, 0 replies; 4+ messages in thread
From: Bruce Raggett @ 2005-04-11 11:01 UTC (permalink / raw)
To: pgsql-jdbc
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" <books@ejurka.com>
To: "Bruce Raggett" <phicorp@iinet.net.au>
Cc: <pgsql-jdbc@postgresql.org>
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
>
>
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2005-04-11 11:01 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-04-07 13:50 Version 8.0-310 and PreparedStatement.getParameterMetaData() Bruce Raggett <phicorp@iinet.net.au>
2005-04-08 23:04 ` Kris Jurka <books@ejurka.com>
2005-04-11 05:25 ` Kris Jurka <books@ejurka.com>
2005-04-11 11:01 ` Bruce Raggett <phicorp@iinet.net.au>
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