Re: Getting oid of 0 when doing LargeObjectManager.create() - Mailing list pgsql-jdbc

From Dror Matalon
Subject Re: Getting oid of 0 when doing LargeObjectManager.create()
Date
Msg-id 20020711001816.GS41426@four.zapatec.com
Whole thread Raw
In response to Getting oid of 0 when doing LargeObjectManager.create()  ("Chris White" <cjwhite@cisco.com>)
Responses Re: Getting oid of 0 when doing LargeObjectManager.create()
List pgsql-jdbc
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

pgsql-jdbc by date:

Previous
From: "Chris White"
Date:
Subject: Getting oid of 0 when doing LargeObjectManager.create()
Next
From: "Chris White"
Date:
Subject: Re: Getting oid of 0 when doing LargeObjectManager.create()