Re: Getting primitive array types from resultset

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: Getting primitive array types from resultset
Дата
Msg-id CADK3HHJSJyerwaUXF__2gwQhDQeyWCjc16WsjAS67U8DVow9aw@mail.gmail.com
обсуждение исходный текст
Ответ на Getting primitive array types from resultset  (Juan Fuentes <juanmarianofuentes@gmail.com>)
Список pgsql-jdbc
There is a pull request right now to fix this.https://github.com/pgjdbc/pgjdbc/pull/1184 

Please test it.


On 10 May 2018 at 12:35, Juan Fuentes <juanmarianofuentes@gmail.com> wrote:
As the subject indicates, any examples of how to archive this?

Looking at the 42.2.0 release change-log links I have been able to find how to set them on a preparedStatement using:
preparedStatement.setObject(paramIndex, param, Types.ARRAY);

Getting them seems to not to work.
value = resultSet.getObject("arrayColumnName", int[].class);
org.postgresql.util.PSQLException: conversion to class [I from 2,003 not supported

Juan

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

Предыдущее
От: Hari Babu Kommi
Дата:
Сообщение: [pgjdbc/pgjdbc] f78a63: fix: set the loggerName inConnectionFactoryImpl.l...
Следующее
От: Dave Cramer
Дата:
Сообщение: Reviewers needed for pgjdbc pull requests