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

From Matt Fair
Subject Re: Connection.setBytes()
Date
Msg-id 3974A9D5.DDA1509B@netasol.com
Whole thread Raw
In response to Re: Connection.setBytes()  (Joachim Achtzehnter <joachim@kraut.bc.ca>)
List 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 by date:

Previous
From: Joseph Shraibman
Date:
Subject: Re: jdbc how to get SERIAL
Next
From: Matt Fair
Date:
Subject: Re: Connection.setBytes()