Large Objects

Поиск
Список
Период
Сортировка
Искать

Large Objects

От:
David Giffin <david@agent911.com>
Дата:

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);

Let me know if you have any ideas.

Thanks in advance,

David

Re: [INTERFACES] Large Objects

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
David Giffin  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
FAQ