libpq example doesn't work

Поиск
Список
Период
Сортировка
От Ideriha, Takeshi
Тема libpq example doesn't work
Дата
Msg-id 4E72940DA2BF16479384A86D54D0988A567BA1B0@G01JPEXMBKW04
обсуждение исходный текст
Ответы Re: libpq example doesn't work  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список pgsql-hackers
Hi, 

When I tried to use libpq, I found that libpq example[1] does not work.
That's because SELECT pg_catlog.set_config() never returns PGRES_COMMAND_OK which is expected,
but actually returns PGRES_TUPLES_OK.

Patch attached. 
I changed both src/test/example and document.

[1] https://www.postgresql.org/docs/devel/static/libpq-example.html 

(By the way, I'm wondering why these examples are placed under src/test.
 They are just examples and not regression tests.)

Best regards,
Takeshi Ideriha


Вложения

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

Предыдущее
От: Amit Langote
Дата:
Сообщение: Re: postgresql_fdw doesn't handle defaults correctly
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: postgresql_fdw doesn't handle defaults correctly