From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Gerhard Häring <lists@ghaering.de>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: I want to send comments to the backend!
Date: Thu, 20 Mar 2003 11:31:35 -0500
Message-ID: <23990.1048177895@sss.pgh.pa.us> (raw)
In-Reply-To: <200303201612.h2KGCJc06432@candle.pha.pa.us>
References: <200303201612.h2KGCJc06432@candle.pha.pa.us>
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
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, pgman@candle.pha.pa.us, lists@ghaering.de
Subject: Re: I want to send comments to the backend!
In-Reply-To: <23990.1048177895@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