pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matt Fair <matt@netasol.com>
To: Joachim Achtzehnter <joachim@kraut.bc.ca>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Connection.setBytes()
Date: Tue, 18 Jul 2000 14:02:46 -0500
Message-ID: <3974A9D5.DDA1509B@netasol.com> (raw)
References: <Pine.WNT.4.21.0007181149250.131-100000@van4>

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




view thread (12+ messages)  latest in thread

Message-ID: <3974A9D5.DDA1509B@netasol.com>
Permalink:  ../3974A9D5.DDA1509B@netasol.com/
Also on:    postgresql.org/message-id/3974A9D5.DDA1509B@netasol.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: matt@netasol.com, joachim@kraut.bc.ca
  Subject: Re: Connection.setBytes()
  In-Reply-To: <3974A9D5.DDA1509B@netasol.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox