Re: Fix setArray() when using the v3 protocol (was Re: Postgres
В списке pgsql-jdbc по дате отправления:
| От | Kris Jurka |
|---|---|
| Тема | Re: Fix setArray() when using the v3 protocol (was Re: Postgres |
| Дата | |
| Msg-id | Pine.BSO.4.56.0410090103130.25387@leary.csoft.net обсуждение |
| Ответ на | Fix setArray() when using the v3 protocol (was Re: Postgres 8.0 + JDBC) (Oliver Jowett <oliver@opencloud.com>) |
| Список | pgsql-jdbc |
On Fri, 8 Oct 2004, Oliver Jowett wrote:
> Oliver Jowett wrote:
> > Oliver Jowett wrote:
> >
> >> It seems possible to fix the driver to handle this case by making
> >> setArray() derive a proper array type name i.e. ("_" +
> >> Array.getBaseType()), and using that rather than 'text' as the
> >> parameter type.
> >
> >
I've applied this. It's not a great solution, but it's low impact and
does fix the problem. An idea I had when looking at it is that if the
lookup by getBaseTypeName fails we could convert getBaseType to a pg type
name by the first match in the connection's jdbcXTypes and retry looking
for an array type with that. Although considering our existing dependency
on Array.toString() returning a properly formatted array this seems like a
waste of effort.
Kris Jurka
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера