Arrays and JDBC :: setObject causes array_in Need to specify dimension

Поиск
Список
Период
Сортировка
От tyagel@yahoo.com (tyagel)
Тема Arrays and JDBC :: setObject causes array_in Need to specify dimension
Дата
Msg-id d84bc765.0405240523.1debfe1f@posting.google.com
обсуждение исходный текст
Ответы Re: Arrays and JDBC :: setObject causes array_in Need to
Список pgsql-jdbc
Im repositing this question from Friday as it ended up on the end of a
year old thread that did not answer my question ...

I have created a database table with and int[] column and I would like
to insert records into this table using JDBC.

The JDBC documentation that I have read seems to indicate that I
should use setObject when inserting the int[] into my
PreparedStatement.

When I attempt to insert the record with the int[] that was set via
setObject I get an error reading "array_in: Need to specify
dimension".

Any help with this would be greatly appreciated.

Thanks,
Thomas

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

Предыдущее
От: edwin karundeng
Дата:
Сообщение: Re: unsubscribe
Следующее
От: "Sharib Anis"
Дата:
Сообщение: Postgresql 7.4.2 and OutOfMemoryError