From: | "Johan C(dot) de Koning" <johan(dot)de(dot)koning(at)geodan(dot)nl> |
---|---|
To: | <pgsql-interfaces(at)postgresql(dot)org> |
Subject: | Getting oid with libpq |
Date: | 2005-08-10 09:33:35 |
Message-ID: | 20050810093352.EAD8B5287F@svr1.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
Hello,
I have stored some large objects (which are images) with the lo_import
function. Now I can read the images with the other functions like lo_read
within libpq. But I have one problem with the oid I have to give to this
method. Inside my program I will do a select like this
Select texture from building_face where face_id > 100;
Textures is the oid field. When I use PQgetValue() I get a complete
different value then when I do a select inside pgAdmin. How can I get the
same oid so that I can use this for reading the data of the images inside my
c++ program. Because it is not working with the oid from PQgetValue.
Best regards,
Johan de Koning
From | Date | Subject | |
---|---|---|---|
Next Message | Tomasz Myrta | 2005-08-10 10:38:23 | Re: Connect to a PostgreSQL-Server by TCP/IP |
Previous Message | William ZHANG | 2005-08-10 06:15:43 | Re: BUG #1815: ECPGdebug causes crash on Windows XP |