Re: AbstractJdbc2Array - another patch

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: AbstractJdbc2Array - another patch
Дата
Msg-id Pine.BSO.4.64.0711220119340.30460@leary.csoft.net
обсуждение исходный текст
Ответ на Re: AbstractJdbc2Array - another patch  (Eric Lenio <eric@lenio.net>)
Список 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 по дате отправления:

Предыдущее
От: Eric Lenio
Дата:
Сообщение: Re: AbstractJdbc2Array - another patch
Следующее
От: Marek Lewczuk
Дата:
Сообщение: Re: AbstractJdbc2Array - another patch