Re: Problem using PQgetvalue()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem using PQgetvalue()
Дата
Msg-id 24473.1177866193@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Problem using PQgetvalue()  (MicazMAK <emoazzam@yahoo.com>)
Список pgsql-interfaces
MicazMAK <emoazzam@yahoo.com> writes:
> 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?

Your result doesn't actually have three columns --- apparently it
has just one.  Better check which query you were issuing.
        regards, tom lane


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: MicazMAK
Дата:
Сообщение: Problem using PQgetvalue()
Следующее
От: "Maphin Philip"
Дата:
Сообщение: postgres and c