Re: I want to send comments to the backend!

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: I want to send comments to the backend!
Дата
Msg-id 23845.1048176636@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: I want to send comments to the backend!  (Gerhard Häring <lists@ghaering.de>)
Ответы Re: I want to send comments to the backend!  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: I want to send comments to the backend!  (Steve Howe <howe@carcass.dhs.org>)
Список pgsql-interfaces
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)

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


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

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