Re: libpq PQexecPrepared returns NULL - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: libpq PQexecPrepared returns NULL
Date
Msg-id 25614.1078412346@sss.pgh.pa.us
Whole thread Raw
In response to libpq PQexecPrepared returns NULL  (Gergely Czuczy <phoemix@harmless.hu>)
Responses Re: libpq PQexecPrepared returns NULL  (Gergely Czuczy <phoemix@harmless.hu>)
List 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 by date:

Previous
From: Gergely Czuczy
Date:
Subject: libpq PQexecPrepared returns NULL
Next
From: Gergely Czuczy
Date:
Subject: Re: libpq PQexecPrepared returns NULL