Re: Connection.setBytes()

Поиск
Список
Период
Сортировка
От Joachim Achtzehnter
Тема Re: Connection.setBytes()
Дата
Msg-id Pine.WNT.4.21.0007181149250.131-100000@van4
обсуждение исходный текст
Ответ на Connection.setBytes()  (Matt Fair <matt@netasol.com>)
Список pgsql-interfaces
On Tue, 18 Jul 2000, Matt Fair wrote:
>
> I want to set an array of bytes to a prepared statement, but it throws a
> null pointer exception.

Did you turn off autocommit? BLOB code must run in the context of a
transaction. I believe autocommit defaults to true, so you must explicitly
set it to false and call commit at the end of your transactions.

Joachim



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

Предыдущее
От: John Thorhauer
Дата:
Сообщение: jdbc how to get SERIAL
Следующее
От: Joseph Shraibman
Дата:
Сообщение: Re: jdbc how to get SERIAL