Re: I want to send comments to the backend!

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Gerhard Häring <lists(at)ghaering(dot)de>, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: I want to send comments to the backend!
Date: 2003-03-20 16:31:35
Message-ID: 23990.1048177895@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> It returns PGRES_NONFATAL_ERROR. Why should this be an error?

Actually, you don't get a "res" object at all, because nothing happened.
The only place in libpq that returns that code is PQresultStatus itself.

Perhaps PGRES_EMPTY_QUERY would be more appropriate? Not sure where in
the chain would be best to change the behavior, though.

regards, tom lane

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Bruce Momjian 2003-03-20 17:22:17 Re: I want to send comments to the backend!
Previous Message Steve Howe 2003-03-20 16:14:06 Re: I want to send comments to the backend!