pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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 10:18:50 -0500
Message-ID: <25837.1078413530@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.44.0403041602100.69-100000@localhost>
References: <Pine.LNX.4.44.0403041602100.69-100000@localhost>

Gergely Czuczy <phoemix@harmless.hu> writes:
> the strange thing is -- what i've forgot to mention -- is that
> PQerrorMessage returns an empty string, so from this i don't know the
> source of the error.

That's messy.  I'd recommend getting out a debugger and tracing through
it to see exactly where it's failing.  Or put in some printf's.  There
aren't that many paths that could return NULL.  I guess one of them must
be forgetting to set PQerrorMessage, which seems like a bug to me.  Let
us know what you find out.

			regards, tom lane



view thread (4+ messages)

Message-ID: <25837.1078413530@sss.pgh.pa.us>
Permalink:  ../25837.1078413530@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25837.1078413530@sss.pgh.pa.us

 · 

reply

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: <25837.1078413530@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