Re: [INTERFACES] Large Objects

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [INTERFACES] Large Objects
Дата
Msg-id 7090.911487922@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Large Objects  (David Giffin <david@agent911.com>)
Список 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 по дате отправления:

Предыдущее
От: Byron Nikolaidis
Дата:
Сообщение: Re: [INTERFACES] Unexpected protocol character from backend
Следующее
От: Marcin Pronczuk
Дата:
Сообщение: :-)