Re: BUG #5268: PQgetvalue incorrectly returns 0

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Mark Kirkwood <mark(dot)kirkwood(at)catalyst(dot)net(dot)nz>
Cc: Mike Landis <mlandis(at)pnmx(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5268: PQgetvalue incorrectly returns 0
Date: 2010-01-08 02:17:49
Message-ID: 603c8f071001071817s21ce6287m65e19532db26f026@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, Jan 7, 2010 at 7:31 PM, Mark Kirkwood
<mark(dot)kirkwood(at)catalyst(dot)net(dot)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?  Maybe 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=0, but then
after I modified it to actually be running against the same database
where I created the test table, I got val=1 as expected.

...Robert

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2010-01-08 02:45:27 Re: Concurrent update failure in HEAD
Previous Message Mark Kirkwood 2010-01-08 00:31:30 Re: BUG #5268: PQgetvalue incorrectly returns 0