From: | Simon Drabble <simon(at)fiddletrudge(dot)dyn(dot)ml(dot)org> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | PQgetvalue weirdness |
Date: | 1998-09-10 16:54:34 |
Message-ID: | Pine.LNX.3.95.980910125019.16442B-100000@fiddletrudge.dyn.ml.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)syspac(dot)com
http://fiddletrudge.dyn.ml.org/
KreatAPayj -- ~simon/KreatAPayj/login.html
LizardCam -- LizardCam/LizardCam.html
Linux Knowledge Base -- ~simon/LinuxKB/index.html
From | Date | Subject | |
---|---|---|---|
Next Message | Przemyslaw Bak | 1998-09-10 17:47:56 | 1.2e+02 -> 120 |
Previous Message | Anand Surelia | 1998-09-10 16:03:34 | Foreign Keys |