Thread: pgsql: Fix libpq example programs

pgsql: Fix libpq example programs

From
Peter Eisentraut
Date:
Fix libpq example programs

When these programs call pg_catalog.set_config, they need to check for
PGRES_TUPLES_OK instead of PGRES_COMMAND_OK.  Fix for
5770172cb0c9df9e6ce27c507b449557e5b45124.

Reported-by: Ideriha, Takeshi <ideriha.takeshi@jp.fujitsu.com>

Branch
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2a4dca949109dae3b95c5f4d55462fd4e6673310

Modified Files
--------------
doc/src/sgml/libpq.sgml        | 4 ++--
doc/src/sgml/lobj.sgml         | 2 +-
src/test/examples/testlibpq.c  | 2 +-
src/test/examples/testlibpq2.c | 2 +-
src/test/examples/testlibpq4.c | 2 +-
src/test/examples/testlo.c     | 2 +-
src/test/examples/testlo64.c   | 2 +-
7 files changed, 8 insertions(+), 8 deletions(-)