Re: Connection.setBytes()

From: Joachim Achtzehnter <joachim(at)kraut(dot)bc(dot)ca>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Connection.setBytes()
Date: 2000-07-18 18:54:37
Message-ID: Pine.WNT.4.21.0007181149250.131-100000@van4
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces pgsql-novice

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

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Joseph Shraibman 2000-07-18 19:00:35 Re: jdbc how to get SERIAL
Previous Message Matt Fair 2000-07-18 18:38:25 Connection.setBytes()

Browse pgsql-novice by date

  From Date Subject
Next Message Matt Fair 2000-07-18 19:02:46 Re: Connection.setBytes()
Previous Message Matt Fair 2000-07-18 18:38:25 Connection.setBytes()