Skip site navigation (1) Skip section navigation (2)

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 15:18:50
Message-ID: 25837.1078413530@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-interfaces
Gergely Czuczy <phoemix(at)harmless(dot)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

In response to

pgsql-interfaces by date

Next:From: Jason C. WellsDate: 2004-03-05 05:09:01
Subject: Success with pgtclng
Previous:From: Gergely CzuczyDate: 2004-03-04 15:03:52
Subject: Re: libpq PQexecPrepared returns NULL

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group