From: | "Chris White" <cjwhite(at)cisco(dot)com> |
---|---|
To: | "'Dror Matalon'" <dror(at)zapatec(dot)com> |
Cc: | <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: Getting oid of 0 when doing LargeObjectManager.create() |
Date: | 2002-07-11 00:53:24 |
Message-ID: | 013401c22875$5d202e70$ff926b80@amer.cisco.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
This is exactly what I have done and I get valid oids returned, but I
intermittently get an oid of 0. It is these that concern me.
-----Original Message-----
From: Dror Matalon [mailto:dror(at)zapatec(dot)com]
Sent: Wednesday, July 10, 2002 5:18 PM
To: Chris White
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: [JDBC] Getting oid of 0 when doing
LargeObjectManager.create()
This works for me:
// All LargeObject API calls must be within a transaction
connection.setAutoCommit(false);
// create a new large object
int oid = largeObjectManager.create(LargeObjectManager.READ
| LargeObjectManager.WRITE);
You need to be in a transaction, and you need to create with flags.
On Wed, Jul 10, 2002 at 04:49:39PM -0700, Chris White wrote:
> I am getting a oid value of 0 returned when I do a
> LargeObjectManager.create(). This tells me that I can't create a large
> object. What reasons would cause this? and what I can do to solve the
> problems.
>
> thanks
> Chris White
--
Dror Matalon
Zapatec Inc
1700 MLK Way
Berkeley, CA 94709
http://www.zapatec.com
From | Date | Subject | |
---|---|---|---|
Next Message | Barry Lind | 2002-07-11 03:56:56 | Re: Getting oid of 0 when doing LargeObjectManager.create() |
Previous Message | Dror Matalon | 2002-07-11 00:18:16 | Re: Getting oid of 0 when doing LargeObjectManager.create() |