Skip site navigation (1) Skip section navigation (2)

Re: Connection.setBytes()

From: Matt Fair <matt(at)netasol(dot)com>
To: Joachim Achtzehnter <joachim(at)kraut(dot)bc(dot)ca>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Connection.setBytes()
Date: 2000-07-18 19:02:46
Message-ID: 3974A9D5.DDA1509B@netasol.com (view raw or flat)
Thread:
Lists: pgsql-interfacespgsql-novice
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


In response to

pgsql-novice by date

Next:From: ChristophSchmidtDate: 2000-07-18 19:06:06
Subject: Re: [INTERFACES] Connection.setBytes()
Previous:From: Joachim AchtzehnterDate: 2000-07-18 18:54:37
Subject: Re: Connection.setBytes()

pgsql-interfaces by date

Next:From: ChristophSchmidtDate: 2000-07-18 19:06:06
Subject: Re: [INTERFACES] Connection.setBytes()
Previous:From: Joseph ShraibmanDate: 2000-07-18 19:00:35
Subject: Re: jdbc how to get SERIAL

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group