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 44EFA47631B for ; Thu, 20 Mar 2003 11:10:38 -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 h2KGAaub023846; Thu, 20 Mar 2003 11:10:36 -0500 (EST) To: =?ISO-8859-1?Q?Gerhard_H=E4ring?= Cc: Bruce Momjian , pgsql-interfaces@postgresql.org Subject: Re: I want to send comments to the backend! In-reply-to: <3E79E5B0.4020703@ghaering.de> References: <200303201522.h2KFMpp24991@candle.pha.pa.us> <23655.1048175249@sss.pgh.pa.us> <3E79E5B0.4020703@ghaering.de> Comments: In-reply-to =?ISO-8859-1?Q?Gerhard_H=E4ring?= message dated "Thu, 20 Mar 2003 17:00:48 +0100" Date: Thu, 20 Mar 2003 11:10:36 -0500 Message-ID: <23845.1048176636@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200303/96 X-Sequence-Number: 3845 =?ISO-8859-1?Q?Gerhard_H=E4ring?= writes: >> I'm quite certain that libpq does not strip comments, so the complaint >> isn't strictly accurate... > Then why does the attached program not work? > res = PQexec(conn, "-- foobar"); > if (!res || PQresultStatus(res) != PGRES_COMMAND_OK) Because a comment isn't an SQL command. I forget what the result status is in this case, but COMMAND_OK ain't it. regards, tom lane