Re: libpq PQexecPrepared returns NULL

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: libpq PQexecPrepared returns NULL
Дата
Msg-id 25614.1078412346@sss.pgh.pa.us
обсуждение исходный текст
Ответ на libpq PQexecPrepared returns NULL  (Gergely Czuczy <phoemix@harmless.hu>)
Ответы Re: libpq PQexecPrepared returns NULL  (Gergely Czuczy <phoemix@harmless.hu>)
Список pgsql-interfaces
Gergely Czuczy <phoemix@harmless.hu> writes:
> i've got a very strange problem, PQexecPrepared returns NULL, but if i
> immadietly rerun the query it will run normally, returning the query
> result. what can be the problem, and how could I track it down, solve it?

Check PQerrorMessage().

AFAIR the only reasons for a null result (instead of a possibly-error
PGresult) would be out-of-memory or connection failure.
        regards, tom lane


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

Предыдущее
От: Gergely Czuczy
Дата:
Сообщение: libpq PQexecPrepared returns NULL
Следующее
От: Gergely Czuczy
Дата:
Сообщение: Re: libpq PQexecPrepared returns NULL