| От | 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!
Re: I want to send comments to the backend! |
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера