From: Tom Lane <tgl@sss.pgh.pa.us>
To: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Fix setArray() when using the v3 protocol (was Re: Postgres 8.0 + JDBC)
Date: Thu, 07 Oct 2004 23:04:41 -0400
Message-ID: <27750.1097204681@sss.pgh.pa.us> (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>
Oliver Jowett <oliver@opencloud.com> writes:
> ! // Use a typename that is "_" plus the base type; this matches how the
> ! // backend looks for array types.
> ! String typename = "_" + x.getBaseTypeName();
> ! int oid = connection.getPGType(typename);
> ! if (oid == Oid.INVALID)
> ! throw new PSQLException("postgresql.prep.typenotfound", PSQLState.INVALID_PARAMETER_TYPE, typename);
Er, what about schema-qualified type names? Also, are you sure that
getBaseTypeName will return the correct internal type name, eg "int8"
not "bigint"?
regards, tom lane
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: tgl@sss.pgh.pa.us, oliver@opencloud.com
Subject: Re: Fix setArray() when using the v3 protocol (was Re: Postgres 8.0 + JDBC)
In-Reply-To: <27750.1097204681@sss.pgh.pa.us>
References: <002901c4aaf7$feabc310$a5010a0a@Johann> <4162FFC9.3010808@opencloud.com> <4164CBA2.80600@opencloud.com> <4165F7B2.70705@opencloud.com> <27750.1097204681@sss.pgh.pa.us>
* 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