Problem using PQgetvalue()

From: MicazMAK <emoazzam(at)yahoo(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Problem using PQgetvalue()
Date: 2007-04-29 16:22:17
Message-ID: 20070429162217.14162.qmail@web36806.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hi I am using PQgetvalue() function in c to get the value of a field like

PQgetvalue(result,0,2)

but the program outputs following

"column number 2 is out of range 0..0"

Can someone tell me how can I get this field and whats wrong?

Thanks

---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Lane 2007-04-29 17:03:13 Re: Problem using PQgetvalue()
Previous Message Islam Hegazy 2007-04-22 03:59:33 Re: modifying in the libpg files