Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 5D5AB9FA4CB for ; Sun, 29 Apr 2007 13:22:22 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 51673-03 for ; Sun, 29 Apr 2007 13:22:19 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from web36806.mail.mud.yahoo.com (web36806.mail.mud.yahoo.com [209.191.85.57]) by postgresql.org (Postfix) with SMTP id 570869FB2A4 for ; Sun, 29 Apr 2007 13:22:19 -0300 (ADT) Received: (qmail 14164 invoked by uid 60001); 29 Apr 2007 16:22:17 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ajV3EWZfMekrHOMabKItKzTIM6EGvcfGlslYtfXkFGrFXr6grvbR+EJfFBA2ooESkfCcpqVF1+/e05elgEnCgnF6oTDLooj5Vyt86UbmP2I1hirX+APOjmxjV1TF5TMnscAyCJ7kdMyshktdREyIeOQGvd7S5+GKeBPGdl35CJU= ; Message-ID: <20070429162217.14162.qmail@web36806.mail.mud.yahoo.com> X-YMail-OSG: _KTp4XwVM1mBEt.0vnkmg_3TvqjXhFHNI8K_KBGe.XXXZ.mV3kLY0qgYaWbE5t1UW8OLfNinmnUr0ru4IlsjShMEcnCPBCQ.GFzmlcf0qdNkNfB83RNKkKttBezpVg-- Received: from [128.61.118.173] by web36806.mail.mud.yahoo.com via HTTP; Sun, 29 Apr 2007 09:22:17 PDT Date: Sun, 29 Apr 2007 09:22:17 -0700 (PDT) From: MicazMAK Subject: Problem using PQgetvalue() To: pgsql-interfaces@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1319033060-1177863737=:13867" Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.807 tagged_above=0 required=5 tests=AWL=-0.446, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, DNS_FROM_RFC_WHOIS=1.447, HTML_40_50=0.496, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200704/18 X-Sequence-Number: 6506 --0-1319033060-1177863737=:13867 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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. --0-1319033060-1177863737=:13867 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 out new cars at Yahoo! Autos. --0-1319033060-1177863737=:13867--