Re: BUG #5268: PQgetvalue incorrectly returns 0

Поиск
Список
Период
Сортировка
От Mark Kirkwood
Тема Re: BUG #5268: PQgetvalue incorrectly returns 0
Дата
Msg-id 4B467CE2.9020001@catalyst.net.nz
обсуждение исходный текст
Ответ на Re: BUG #5268: PQgetvalue incorrectly returns 0  (Mike Landis <mlandis@pnmx.com>)
Ответы Re: BUG #5268: PQgetvalue incorrectly returns 0  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-bugs
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). I used user=postgres and database=regression and
pgtable='tenk1' (schema from the regression test suite). As Tom
mentioned, your user might not have access to the table you are using -
try using the superuser account - typically 'postgres' to eliminate this
possibility.

With respect to the libpq source, it is in the source tarball from the
Postgresql website (directory src/interfaces/libpq ).

regards

Mark

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #5268: PQgetvalue incorrectly returns 0
Следующее
От: Robert Haas
Дата:
Сообщение: Re: BUG #5268: PQgetvalue incorrectly returns 0