getting out boolean value from PQgetValue function

Поиск
Список
Период
Сортировка
От Arunachalam Parthasarathy
Тема getting out boolean value from PQgetValue function
Дата
Msg-id 6c5a2cb10801121211x704ee8d8o220817a854a79843@mail.gmail.com
обсуждение исходный текст
Ответы Re: getting out boolean value from PQgetValue function  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hello all,
 
I am using pg advisory locks in my application using libpq. When lock is obtained, the result set contains boolean value for the row locked in result set.
 
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?
 
do i need to use ntohl to convert / see the proper binary value?
 
Please reply me regarding this.
 
thanks a lot,
Arunachalam.

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

Предыдущее
От: "Marko Kreen"
Дата:
Сообщение: Re: Transaction Snapshot Cloning
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Transaction Snapshot Cloning