| От | Tom Lane |
|---|---|
| Тема | Re: lo_import problems |
| Дата | |
| Msg-id | 21979.956118065@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | lo_import problems (Igor Gavriloff <igor@nupes.cefetpr.br>) |
| Список | pgsql-interfaces |
Igor Gavriloff <igor@nupes.cefetpr.br> writes:
> I'm trying to write an script in Perl5 that do an lo_import, but
> using the one that the perl interface offers returns an oid equal to
> zero:
> ...
> $conn = Pg::connectdb("dbname=test");
> $lobjId = $conn->lo_import($file);
lo_import, like all LO operations, has to be executed inside a
transaction block (BEGIN/END SQL commands). This is, um, poorly
documented in the Perl interface's docs, though you can read about
it in the docs for the underlying C library libpq.
regards, tom lane
В списке pgsql-interfaces по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера