pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Howe <howe@carcass.dhs.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Gerhard Häring <lists@ghaering.de>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: I want to send comments to the backend!
Date: Thu, 20 Mar 2003 13:14:06 -0300
Message-ID: <19554180587.20030320131406@carcass.dhs.org> (raw)
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>

Hello Tom,

Thursday, March 20, 2003, 1:10:36 PM, you wrote:

TL> =?ISO-8859-1?Q?Gerhard_H=E4ring?= <lists@ghaering.de> 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




view thread (25+ messages)  latest in thread

Message-ID: <19554180587.20030320131406@carcass.dhs.org>
Permalink:  ../19554180587.20030320131406@carcass.dhs.org/
Also on:    postgresql.org/message-id/19554180587.20030320131406@carcass.dhs.org

 · 

reply

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: howe@carcass.dhs.org, tgl@sss.pgh.pa.us, lists@ghaering.de, pgman@candle.pha.pa.us
  Subject: Re: I want to send comments to the backend!
  In-Reply-To: <19554180587.20030320131406@carcass.dhs.org>

* 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