Re: Connection.setBytes() - Mailing list pgsql-interfaces

From Joachim Achtzehnter
Subject Re: Connection.setBytes()
Date
Msg-id Pine.WNT.4.21.0007181149250.131-100000@van4
Whole thread Raw
In response to Connection.setBytes()  (Matt Fair <matt@netasol.com>)
List 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 by date:

Previous
From: John Thorhauer
Date:
Subject: jdbc how to get SERIAL
Next
From: Joseph Shraibman
Date:
Subject: Re: jdbc how to get SERIAL