pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: sandhya <sandhyar@amiindia.co.in>
To: postgre <pgsql-admin@postgresql.org>
Cc: sandhya <sandhyar@amiindia.co.in>
Subject: How to get OID return value(pls help me)
Date: Thu, 22 Dec 2005 11:05:22 +0530
Message-ID: <001001c606b9$80b50060$cd00000a@amiindiahjwbgh> (raw)

Hi......


My table consists of oid and varchar datatypes.
I want to get the oid type from the table and i need to pass it to a function which accepts only the oid data type.
But my problem is the return value of the datatype i am getting from the query result is char*.
Is there any function in postgresql which gives the return value of the executed query as OID type.

Please explain me what to do inorder to get the Oid type 
When i used PQoidValue(res).It is giving 0.
Also in document they mention something related to INSERT query only.
But i want it for select query.
Thank you,
Regards,
Sandhya

view thread (3+ messages)  latest in thread

Message-ID: <001001c606b9$80b50060$cd00000a@amiindiahjwbgh>
Permalink:  ../001001c606b9$80b50060$cd00000a@amiindiahjwbgh/
Also on:    postgresql.org/message-id/001001c606b9$80b50060$cd00000a@amiindiahjwbgh

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: sandhyar@amiindia.co.in
  Subject: Re: How to get OID return value(pls help me)
  In-Reply-To: <001001c606b9$80b50060$cd00000a@amiindiahjwbgh>
  References: <001001c606b9$80b50060$cd00000a@amiindiahjwbgh>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox