Re: [GENERAL] PQgetvalue weirdness

Поиск
Список
Период
Сортировка
От Chris Johnson
Тема Re: [GENERAL] PQgetvalue weirdness
Дата
Msg-id Pine.LNX.4.00.9809101418550.15980-100000@boreus.bedfo.ma.tiac.net
обсуждение исходный текст
Ответы Re: [GENERAL] PQgetvalue weirdness  (Simon Drabble <simon@fiddletrudge.dyn.ml.org>)
Список pgsql-general
Postgres numbers the rows and fields starting at 0 - your call to get the
first row and column would be PQgetvalue(result, 0, 0)

Chris

On Thu, 10 Sep 1998, Simon Drabble wrote:

>
> 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 по дате отправления:

Предыдущее
От: Przemyslaw Bak
Дата:
Сообщение: 1.2e+02 -> 120
Следующее
От: Simon Drabble
Дата:
Сообщение: Re: [GENERAL] PQgetvalue weirdness