Re: can't write a BLOB, 7.1.2

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Dejan Vucinic" <hotdejan(at)hotmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: can't write a BLOB, 7.1.2
Date: 2001-07-11 18:27:41
Message-ID: 27871.994876061@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

"Dejan Vucinic" <hotdejan(at)hotmail(dot)com> writes:
> I'm trying to create a BLOB with the 7.1.2 JDBC driver and both
> setBytes() and setBinaryStream() fail with this message:
> FastPath call returned ERROR: lo_write: invalid large obj descriptor (0)

Probably you are not wrapping the operation into a transaction
(BEGIN/COMMIT). Large object descriptors are only good to the end of
the current transaction.

regards, tom lane

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Barry Lind 2001-07-11 18:36:54 Re: : SQLException.getErrorCode() : Where can I find list of error code and description ?
Previous Message Dejan Vucinic 2001-07-11 17:45:25 can't write a BLOB, 7.1.2