pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Eric Lenio <eric@lenio.net>
Cc: Marek Lewczuk <newsy@lewczuk.com>
Cc: pgsql-jdbc <pgsql-jdbc@postgresql.org>
Subject: Re: AbstractJdbc2Array - another patch
Date: Thu, 22 Nov 2007 01:26:56 -0500 (EST)
Message-ID: <Pine.BSO.4.64.0711220119340.30460@leary.csoft.net> (raw)
In-Reply-To: <20071122060905.GB25875@lenio.net>
References: <470DE5E7.2090807@lewczuk.com>
	<Pine.BSO.4.64.0710180401490.16749@leary.csoft.net>
	<47172FF2.6070203@lewczuk.com>
	<4717A074.4000109@ejurka.com>
	<4721D42E.4060107@lewczuk.com>
	<Pine.BSO.4.64.0710261209350.18147@leary.csoft.net>
	<47222D11.5010006@lewczuk.com>
	<Pine.BSO.4.64.0710281511210.31092@leary.csoft.net>
	<4726F311.8090001@lewczuk.com>
	<Pine.BSO.4.64.0711211452310.24674@leary.csoft.net>
	<20071122060905.GB25875@lenio.net>



On Thu, 22 Nov 2007, Eric Lenio wrote:

> Kris/Marek: I've attached a very small followup patch which addresses a
> need I had: I was using java.sql.DatabaseMetaData's getColumns method to
> attempt to get the COLUMN_SIZE attribute for a column of type "character
> varying(255) []".  Without my patch (applied after Kris's patches) the
> COLUMN_SIZE would be 2147483647, with the patch it would be 255.  I am
> by no means a JDBC or Postgresql expert, so maybe I am way off base.
> What do you think?
>

Looks reasonable, but way too specific.  We don't want to do that for each 
array type.  At the top of each of the methods that have the switch 
statements we should have something that checks to see if it is an array 
type and converts the oid to the oid of the base type.

Kris Jurka




view thread (20+ messages)  latest in thread

Message-ID: <Pine.BSO.4.64.0711220119340.30460@leary.csoft.net>
Permalink:  ../Pine.BSO.4.64.0711220119340.30460@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.64.0711220119340.30460@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, eric@lenio.net, newsy@lewczuk.com
  Subject: Re: AbstractJdbc2Array - another patch
  In-Reply-To: <Pine.BSO.4.64.0711220119340.30460@leary.csoft.net>
  References: <470DE5E7.2090807@lewczuk.com> <Pine.BSO.4.64.0710180401490.16749@leary.csoft.net> <47172FF2.6070203@lewczuk.com> <4717A074.4000109@ejurka.com> <4721D42E.4060107@lewczuk.com> <Pine.BSO.4.64.0710261209350.18147@leary.csoft.net> <47222D11.5010006@lewczuk.com> <Pine.BSO.4.64.0710281511210.31092@leary.csoft.net> <4726F311.8090001@lewczuk.com> <Pine.BSO.4.64.0711211452310.24674@leary.csoft.net> <20071122060905.GB25875@lenio.net> <Pine.BSO.4.64.0711220119340.30460@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