Re: [INTERFACES] Connection.setBytes()

From: ChristophSchmidt <cs(dot)hilzingen(at)swol(dot)de>
To: Joachim Achtzehnter <joachim(at)kraut(dot)bc(dot)ca>, pgsql-novice(at)postgresql(dot)org
Subject: Re: [INTERFACES] Connection.setBytes()
Date: 2000-07-18 19:06:06
Message-ID: 00071821101000.00418@nasen2
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces pgsql-novice

Am Die, 18 Jul 2000 schrieben Sie:
> 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

Hi,
where is the point to turn autocommit off ?
(how do you turn it off )
I am new to PREPARED STATEMENT...
Where can i find the documentation ?
How much more efficient is it ?
Is it similar to stored procedures/functions ?

cs

In response to

Browse pgsql-interfaces by date

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

Browse pgsql-novice by date

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