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

From Barry Lind
Subject Re: Getting oid of 0 when doing LargeObjectManager.create()
Date
Msg-id 3D2D0208.50808@xythos.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
Chris,

What version are you using?  I just fixed a bug last week on this, so
have you tried the latest development driver build from jdbc.postgresql.org?

If this isn't related to the bug I fixed then it is likely related to
the fact that you are trying to use a large object after having done a
commit.  In order to use large objects you must run with autocommit
turned off since the large object pointer becomes invalid on a commit.

thanks,
--Barry

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




pgsql-jdbc by date:

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