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

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: (view raw, whole thread or download thread mbox)
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

pgsql-jdbc by date

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

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