Re: [INTERFACES] Large Objects - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: [INTERFACES] Large Objects
Date
Msg-id 7090.911487922@sss.pgh.pa.us
Whole thread Raw
In response to Large Objects  (David Giffin <david@agent911.com>)
List pgsql-interfaces
David Giffin <david@agent911.com> writes:
> I'm working on a project with large objects. I'm getting this error:
>     Can't call method "Pg::PQlo_creat" on unblessed reference
> Here is the code it is choking on..
>     $conn = Pg::PQsetdb('', '', '', '', $$SD{'database'});
>     $lobj_Id = $conn->Pg::PQlo_creat($mode);

Offhand, I think you want to write just
      $lobj_Id = $conn->PQlo_creat($mode);
At least, my experiments with perl Pg have not needed to qualify the
names of methods invoked on an already-created object...

            regards, tom lane

pgsql-interfaces by date:

Previous
From: Byron Nikolaidis
Date:
Subject: Re: [INTERFACES] Unexpected protocol character from backend
Next
From: Marcin Pronczuk
Date:
Subject: :-)