Re: Help - lo_close: invalid large obj descriptor

From: Barry Lind <blind(at)xythos(dot)com>
To: Toby Doig <toby(at)paperjet(dot)com>
Cc: pgsql-jdbc <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Help - lo_close: invalid large obj descriptor
Date: 2003-08-28 17:21:15
Message-ID: 3F4E3A0B.7080303@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Toby Doig wrote:
>>On Wed, Aug 27, 2003 at 12:36:24PM -0700, Barry Lind wrote:
>>
>>>Toby,
>>>
>>>You need to have autocommit turned off in order to use large objects.
>>>If I add a call to setAutocommit(false) for the connection everything
>>>works fine.
>
>
> yes, i know. and the autocommit was indeed set to false.
>
>
>>>> source.setDefaultAutoCommit(false);
>
> see? i did set it.

I don't think this method currently does anything.

>
>
>>>> System.out.println(conn.getAutoCommit());
>
> and i verified it here.
>

Yes you verified that AutoCommit was on. At least when I run your test
program the above println prints 'true', which means autocommit is on
and thus the problem.

thanks,
--Barry

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Barry Lind 2003-08-28 17:23:24 Re: binding variable length array
Previous Message Geetha Kajjam 2003-08-28 16:57:12 Please i dont want to receive any mails from this group