Re: BUG #3278: PSQLException when using setBinaryStream via JDBC

Поиск
Список
Период
Сортировка
Искать
От
Kris Jurka
Тема
Re: BUG #3278: PSQLException when using setBinaryStream via JDBC
Дата
в 15:29:20
Msg-id
Pine.BSO.4.64.0705141426500.20137@leary.csoft.net
Ответ на
Список
Дерево обсуждения
BUG #3278: PSQLException when using setBinaryStream via JDBC "jeffrey zhao" <jeffrey.zhao@metalogic-inc.com>
Re: BUG #3278: PSQLException when using setBinaryStream via JDBC Kris Jurka <books@ejurka.com>
On Mon, 14 May 2007, jeffrey zhao wrote:

> The following bug has been logged online:
>
> Bug reference:      3278
>
> When I run the following program, I got an exception as following:
>
> ps.setBinaryStream(2, fis, file.length());
> org.postgresql.util.PSQLException: Method
> org.postgresql.jdbc4.Jdbc4PreparedStat
> ement.setBinaryStream(int, InputStream, long) is not yet implemented.
>
> Is the method setBinaryStream really not yet implemented?
>

JDBC4 added a setBinaryStream(int, InputStream, long) method which has not 
been implemented yet.  JDBC2 offers setBinaryStream(int, InputStream, int) 
which is implmented.  So you'll need to cast the last parameter to an 
integer to make it work with the current driver.

Kris Jurka
В списке pgsql-bugs по дате отправления
От:
Дата:
Сообщение: BUG #3279: insert or update
От: Stefan Kaltenbrunner
Дата:
FAQ