Patch: Force Primitives

Поиск
Список
Период
Сортировка
От Nicholas White
Тема Patch: Force Primitives
Дата
Msg-id CA+=vxNbFOFq_24NASd6abQhY8AAwWfOYLQB7mAGMXNkOSzYJQQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Patch: Force Primitives  (Nicholas White <n.j.white@gmail.com>)
Список pgsql-jdbc
Hi,

I'd like the JDBC driver's Array implementations to return primitive arrays when I call getArray(). I can force this behaviour by passing &compatible=8.2 in my JDBCUrl, but then I can't transfer the arrays from the database via the binary protocol, as that requires a minimum compatible version of 8.3. I've attached a patch that makes the driver recognise a forcePrimitives boolean flag in the JDBCUrl, and if it sees this it will return primitive arrays, not object arrays.


Is this OK? Thanks -

Nick
Вложения

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Chen Huajun
Дата:
Сообщение: [PATCH] fix a misstake in Driver.getPropertyInfo()
Следующее
От: Nicholas White
Дата:
Сообщение: Re: Patch: Force Primitives