Re: AbstractJdbc2Array - another patch - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: AbstractJdbc2Array - another patch
Date
Msg-id Pine.BSO.4.64.0711220119340.30460@leary.csoft.net
Whole thread Raw
In response to Re: AbstractJdbc2Array - another patch  (Eric Lenio <eric@lenio.net>)
List pgsql-jdbc

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


pgsql-jdbc by date:

Previous
From: Eric Lenio
Date:
Subject: Re: AbstractJdbc2Array - another patch
Next
From: Marek Lewczuk
Date:
Subject: Re: AbstractJdbc2Array - another patch