Re: I want to send comments to the backend! - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: I want to send comments to the backend!
Date
Msg-id 23990.1048177895@sss.pgh.pa.us
Whole thread Raw
In response to Re: I want to send comments to the backend!  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: I want to send comments to the backend!  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-interfaces
Bruce Momjian <pgman@candle.pha.pa.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


pgsql-interfaces by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: I want to send comments to the backend!
Next
From: Steve Howe
Date:
Subject: Re: I want to send comments to the backend!