Re: libpq PQexecPrepared returns NULL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gergely Czuczy <phoemix(at)harmless(dot)hu>
Cc: pgsql-interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: libpq PQexecPrepared returns NULL
Date: 2004-03-04 14:59:06
Message-ID: 25614.1078412346@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Gergely Czuczy <phoemix(at)harmless(dot)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

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Gergely Czuczy 2004-03-04 15:03:52 Re: libpq PQexecPrepared returns NULL
Previous Message Gergely Czuczy 2004-03-04 12:07:00 libpq PQexecPrepared returns NULL