From: Kris Jurka <books@ejurka.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Fix setArray() when using the v3 protocol (was Re: Postgres
Date: Sat, 9 Oct 2004 01:10:36 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0410090103130.25387@leary.csoft.net> (raw)
In-Reply-To: <4165F7B2.70705@opencloud.com>
References: <002901c4aaf7$feabc310$a5010a0a@Johann>
<4162FFC9.3010808@opencloud.com>
<4164CBA2.80600@opencloud.com>
<4165F7B2.70705@opencloud.com>
On Fri, 8 Oct 2004, Oliver Jowett wrote:
> Oliver Jowett wrote:
> > Oliver Jowett wrote:
> >
> >> It seems possible to fix the driver to handle this case by making
> >> setArray() derive a proper array type name i.e. ("_" +
> >> Array.getBaseType()), and using that rather than 'text' as the
> >> parameter type.
> >
> >
I've applied this. It's not a great solution, but it's low impact and
does fix the problem. An idea I had when looking at it is that if the
lookup by getBaseTypeName fails we could convert getBaseType to a pg type
name by the first match in the connection's jdbcXTypes and retry looking
for an array type with that. Although considering our existing dependency
on Array.toString() returning a properly formatted array this seems like a
waste of effort.
Kris Jurka
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: books@ejurka.com, oliver@opencloud.com
Subject: Re: Fix setArray() when using the v3 protocol (was Re: Postgres
In-Reply-To: <Pine.BSO.4.56.0410090103130.25387@leary.csoft.net>
References: <002901c4aaf7$feabc310$a5010a0a@Johann> <4162FFC9.3010808@opencloud.com> <4164CBA2.80600@opencloud.com> <4165F7B2.70705@opencloud.com> <Pine.BSO.4.56.0410090103130.25387@leary.csoft.net>
* 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