Re: patch - support for multi-dimensional arrays and NULL values
От | Oliver Jowett |
---|---|
Тема | Re: patch - support for multi-dimensional arrays and NULL values |
Дата | |
Msg-id | 469B0F0F.2070700@opencloud.com обсуждение исходный текст |
Ответ на | Re: patch - support for multi-dimensional arrays and NULL values (Kris Jurka <books@ejurka.com>) |
Ответы |
Re: patch - support for multi-dimensional arrays and NULL
values
|
Список | pgsql-jdbc |
Kris Jurka wrote: > 2) Changing from returning arrays of primitive types to arrays of > objects is necessary for null and multi-dimension support, but will > still break users code all over the place. Not sure what we can do > about that other than put a strong warning in the release notes. I was wondering which behaviour was right -- I thought returning array-of-primitive was correct per the spec at the time I wrote it, and that's why getArray() returns Object not Object[] -- but now the 1.6 javadoc says: > Note: When getArray is used to materialize a base type that maps to a primitive data type, then it is implementation-definedwhether the array returned is an array of that primitive data type or an array of Object. So I suppose that .. in theory .. applications should be expecting to handle both. Ugh. -O
В списке pgsql-jdbc по дате отправления: