From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gergely Czuczy <phoemix@harmless.hu>
Cc: pgsql-interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: libpq PQexecPrepared returns NULL
Date: Thu, 04 Mar 2004 09:59:06 -0500
Message-ID: <25614.1078412346@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.44.0403041305200.32728-100000@localhost>
References: <Pine.LNX.4.44.0403041305200.32728-100000@localhost>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, phoemix@harmless.hu
Subject: Re: libpq PQexecPrepared returns NULL
In-Reply-To: <25614.1078412346@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox