Re: Patch: Force Primitives

Поиск
Список
Период
Сортировка
От Nicholas White
Тема Re: Patch: Force Primitives
Дата
Msg-id CA+=vxNZtH+coKeFC4X6wE3vay7FsJZRYu0ZGDpaxK6O-qz9MYg@mail.gmail.com
обсуждение исходный текст
Ответ на Patch: Force Primitives  (Nicholas White <n.j.white@gmail.com>)
Ответы Re: Patch: Force Primitives  (Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>)
Список pgsql-jdbc
I've revised the patch to make Array.getArray() return a primitive array even when using the binary transfer format. I had to add extra code to force a statement to do a describe query before executing (previously it would only do this if the org.postgresql.forcebinary system property was set), as the QueryExecutorImpl needs the Field objects to be populated when sendBind is called, or the query results will be sent back in Text format. The PrimitivesTest unit test my patch adds verifies that a column is being returned in the correct (text or binary) format. I think this fixes an outstanding bug; I believe binary transfers will only be used if the system property is set, and the binaryTransfer JDBCUrl parameter is currently useless.

Thanks -

Nick
Вложения

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

Предыдущее
От: Nicholas White
Дата:
Сообщение: Patch: Force Primitives
Следующее
От: Mikko Tiihonen
Дата:
Сообщение: Re: Patch: Force Primitives