X-Original-To: pgsql-interfaces@postgresql.org Received: from paiol.terra.com.br (paiol.terra.com.br [200.176.3.18]) by postgresql.org (Postfix) with ESMTP id B95A6474E4F for ; Thu, 20 Mar 2003 12:00:40 -0500 (EST) Received: from marova.terra.com.br (marova.terra.com.br [200.176.3.39]) by paiol.terra.com.br (Postfix) with ESMTP id B1AA447538; Thu, 20 Mar 2003 13:14:08 -0300 (BRT) Received: from 200.192.201.63 (cm-virtua-cwb-C8C0C93F.brdterra.com.br [200.192.201.63]) (authenticated user howe) by marova.terra.com.br (Postfix) with ESMTP id CA0213DC0B1; Thu, 20 Mar 2003 13:14:05 -0300 (BRT) Date: Thu, 20 Mar 2003 13:14:06 -0300 From: Steve Howe X-Mailer: The Bat! (v1.63 Beta/7) Reply-To: Steve Howe Organization: ACME X-Priority: 3 (Normal) Message-ID: <19554180587.20030320131406@carcass.dhs.org> To: Tom Lane Cc: =?ISO-8859-15?B?R2VyaGFyZCBI5HJpbmc=?= , Bruce Momjian , Subject: Re: I want to send comments to the backend! In-Reply-To: <23845.1048176636@sss.pgh.pa.us> References: <200303201522.h2KFMpp24991@candle.pha.pa.us> <23655.1048175249@sss.pgh.pa.us> <3E79E5B0.4020703@ghaering.de> <23845.1048176636@sss.pgh.pa.us> MIME-Version: 1.0 Content-type: text/plain; charset=ISO-8859-15 Content-transfer-encoding: 8bit X-Archive-Number: 200303/99 X-Sequence-Number: 3848 Hello Tom, Thursday, March 20, 2003, 1:10:36 PM, you wrote: TL> =?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) TL> Because a comment isn't an SQL command. I forget what the result status TL> is in this case, but COMMAND_OK ain't it. Probably PGRES_EMPTY_QUERY I think... ------------- Best regards, Steve Howe mailto:howe@carcass.dhs.org