pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Radosław Smogura <rsmogura@softperience.eu>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: TypeInfoCache.getPGArrayElement - determine if array
Date: Tue, 23 Nov 2010 02:28:02 -0500 (EST)
Message-ID: <alpine.BSO.2.00.1011230225550.26635@leary.csoft.net> (raw)
In-Reply-To: <b4061baf630d6ebb766e790c1910b248@smogura-softworks.eu>
References: <b4061baf630d6ebb766e790c1910b248@smogura-softworks.eu>



On Mon, 22 Nov 2010, Rados?aw Smogura wrote:

>
> In TypeInfo.getPGArrayElement it is written "Returns: the base type's OID,
> or 0 if unknown", but if given oid isn't array exception is thrown (empty
> result set), if unknown doesn't means unspecified then following patch

Yes, it does have the assumption that the oid passes is an array type, but 
I'm not sure that's a problem.  Is there a case that you want to use this 
for a type that may or may not be an array and don't want an exception 
thrown?  If not, I think updating the documentation is the way to go.

Kris Jurka



view thread (3+ messages)  latest in thread

Message-ID: <alpine.BSO.2.00.1011230225550.26635@leary.csoft.net>
Permalink:  ../alpine.BSO.2.00.1011230225550.26635@leary.csoft.net/
Also on:    postgresql.org/message-id/alpine.BSO.2.00.1011230225550.26635@leary.csoft.net

 · 

reply

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, rsmogura@softperience.eu
  Subject: Re: TypeInfoCache.getPGArrayElement - determine if array
  In-Reply-To: <alpine.BSO.2.00.1011230225550.26635@leary.csoft.net>
  References: <b4061baf630d6ebb766e790c1910b248@smogura-softworks.eu> <alpine.BSO.2.00.1011230225550.26635@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