From: | Steve Howe <howe(at)carcass(dot)dhs(dot)org> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Gerhard Häring <lists(at)ghaering(dot)de>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, <pgsql-interfaces(at)postgresql(dot)org> |
Subject: | Re: I want to send comments to the backend! |
Date: | 2003-03-20 16:14:06 |
Message-ID: | 19554180587.20030320131406@carcass.dhs.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
Hello Tom,
Thursday, March 20, 2003, 1:10:36 PM, you wrote:
TL> =?ISO-8859-1?Q?Gerhard_H=E4ring?= <lists(at)ghaering(dot)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(at)carcass(dot)dhs(dot)org
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-03-20 16:31:35 | Re: I want to send comments to the backend! |
Previous Message | Bruce Momjian | 2003-03-20 16:13:16 | Re: [INTERFACES] Roadmap for FE/BE protocol redesign |