Re: getting out boolean value from PQgetValue function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: getting out boolean value from PQgetValue function
Дата
Msg-id 21754.1200170369@sss.pgh.pa.us
обсуждение исходный текст
Ответ на getting out boolean value from PQgetValue function  ("Arunachalam Parthasarathy" <arunachalamamsam@gmail.com>)
Список pgsql-hackers
"Arunachalam Parthasarathy" <arunachalamamsam@gmail.com> writes:
> When i iterate over the result set, i am unable to get the return boolean
> value in my code. The ptr returned by PQGetValue is valid, but contains
> nothing. why is it so?

Did you check PQgetisnull()?  IIRC PQgetvalue() will return a
zero-length string for a null field.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: A note about SIGTERM illusion and reality
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Transaction Snapshot Cloning