Re: [GENERAL] lo_import invalid large object descriptor

2008-07-14 Thread Tom Lane
Markus Mehrwald <[EMAIL PROTECTED]> writes: > I tried to insert an image in my database with lo_import. The error I > get is "invalid large object descriptor: 0". lo_import has to be called within a transaction block (BEGIN/COMMIT). The documentation is not very clear about that :-( (Actually, ra

[GENERAL] lo_import invalid large object descriptor

2008-07-14 Thread Markus Mehrwald
Hello, I tried to insert an image in my database with lo_import. The error I get is "invalid large object descriptor: 0". If I try to create an oid I get a valid one but with lo_import it seems not to work. The connection is ok as well. The folloing code produces the output after the code. if (PQ