PQgetvalue weirdness - Mailing list pgsql-general

From Simon Drabble
Subject PQgetvalue weirdness
Date
Msg-id Pine.LNX.3.95.980910125019.16442B-100000@fiddletrudge.dyn.ml.org
Whole thread Raw
List pgsql-general
I'm executing a (simple) query using libpq, and this is the error I get
from PQgetvalue(result, 1, 1):

PQgetvalue: There is no field 1 in the query results.  The highest
numbered field is 0.

I get a similar error if I call getlength().

There _is_ data there - PQprintTuples() prints everything correctly.


Can anyone shed any light?  PQtrace() doesn't reveal anything useful..


Simon.


--
                           ...oooOOOooo...
   Simon Drabble                     mailto:madlather@syspac.com
   http://fiddletrudge.dyn.ml.org/
   KreatAPayj           --        ~simon/KreatAPayj/login.html
   LizardCam            --        LizardCam/LizardCam.html
   Linux Knowledge Base --        ~simon/LinuxKB/index.html



pgsql-general by date:

Previous
From: "John Smith"
Date:
Subject: suggestions on vacuum
Next
From: Przemyslaw Bak
Date:
Subject: 1.2e+02 -> 120