X-Original-To: pgsql-interfaces@postgresql.org Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 375F047631B for ; Thu, 20 Mar 2003 11:31:40 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.8/8.12.8) with ESMTP id h2KGVZub023991; Thu, 20 Mar 2003 11:31:35 -0500 (EST) To: Bruce Momjian Cc: =?ISO-8859-1?Q?Gerhard_H=E4ring?= , pgsql-interfaces@postgresql.org Subject: Re: I want to send comments to the backend! In-reply-to: <200303201612.h2KGCJc06432@candle.pha.pa.us> References: <200303201612.h2KGCJc06432@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Thu, 20 Mar 2003 11:12:19 -0500" Date: Thu, 20 Mar 2003 11:31:35 -0500 Message-ID: <23990.1048177895@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200303/98 X-Sequence-Number: 3847 Bruce Momjian 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