Received: from mgw00.swol.de (mgw00.swol.de [195.238.142.133]) by hub.org (8.10.1/8.10.1) with SMTP id e6IJVVh80314 for ; Tue, 18 Jul 2000 15:31:31 -0400 (EDT) Received: (qmail 25128 invoked from network); 18 Jul 2000 19:30:09 -0000 Received: from blum4.swol.de (HELO nasen2) (195.238.140.36) by mgw00.swol.de with SMTP; 18 Jul 2000 19:30:09 -0000 From: ChristophSchmidt Reply-To: cs.hilzingen@swol.de To: Joachim Achtzehnter , pgsql-interfaces@postgresql.org Subject: Re: Connection.setBytes() Date: Tue, 18 Jul 2000 21:32:31 +0200 X-Mailer: KMail [version 1.0.17] Content-Type: text/plain References: MIME-Version: 1.0 Message-Id: <00071821334800.00719@nasen2> Content-Transfer-Encoding: 8bit X-KMail-Mark: X-Archive-Number: 200007/127 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