Re: I want to send comments to the backend!

Поиск
Список
Период
Сортировка
От Steve Howe
Тема Re: I want to send comments to the backend!
Дата
Msg-id 19554180587.20030320131406@carcass.dhs.org
обсуждение исходный текст
Ответ на Re: I want to send comments to the backend!  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-interfaces
Hello Tom,

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

TL> Gerhard Häring <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



В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: I want to send comments to the backend!
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: I want to send comments to the backend!