Re: Connection.setBytes()

Поиск
Список
Период
Сортировка
От Matt Fair
Тема Re: Connection.setBytes()
Дата
Msg-id 3974A9D5.DDA1509B@netasol.com
обсуждение исходный текст
Ответ на Re: Connection.setBytes()  (Joachim Achtzehnter <joachim@kraut.bc.ca>)
Список pgsql-interfaces
Yes, I used
con.setAutoCommit(false);

Joachim Achtzehnter wrote:

> 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 по дате отправления:

Предыдущее
От: Joseph Shraibman
Дата:
Сообщение: Re: jdbc how to get SERIAL
Следующее
От: Matt Fair
Дата:
Сообщение: Re: Connection.setBytes()