Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-interfaces by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group