Re: BUG #5268: PQgetvalue incorrectly returns 0

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: BUG #5268: PQgetvalue incorrectly returns 0
Дата
Msg-id 603c8f071001071817s21ce6287m65e19532db26f026@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #5268: PQgetvalue incorrectly returns 0  (Mark Kirkwood <mark.kirkwood@catalyst.net.nz>)
Список pgsql-bugs
On Thu, Jan 7, 2010 at 7:31 PM, Mark Kirkwood
<mark.kirkwood@catalyst.net.nz> wrote:
> Mike Landis wrote:
>>
>> Pick a database and table that exists, configure the string cconstants,
>> compile and run the attached cpp, get 0 instead of 1 (that you get in
>> pgAdmin...
>>
>> Where's can I download the libpq source? =A0Maybe I can find and/or fix =
the
>> problem myself.
>
> Your program works fine for me (apart from minor datatype changes to port=
 to
> Linux).

It works fine for me, too.  At first I was getting val=3D0, but then
after I modified it to actually be running against the same database
where I created the test table, I got val=3D1 as expected.

...Robert

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

Предыдущее
От: Mark Kirkwood
Дата:
Сообщение: Re: BUG #5268: PQgetvalue incorrectly returns 0
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Concurrent update failure in HEAD