Fix libpq example programs
authorPeter Eisentraut <[email protected]>
Sun, 1 Jul 2018 12:06:40 +0000 (14:06 +0200)
committerPeter Eisentraut <[email protected]>
Sun, 1 Jul 2018 12:09:22 +0000 (14:09 +0200)
commit2a4dca949109dae3b95c5f4d55462fd4e6673310
tree8cc8eb2048183777186d5285e3811938735c0615
parentf61a25727cd9246d749825cdaafa821b7ddbad7c
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 <[email protected]>
doc/src/sgml/libpq.sgml
doc/src/sgml/lobj.sgml
src/test/examples/testlibpq.c
src/test/examples/testlibpq2.c
src/test/examples/testlibpq4.c
src/test/examples/testlo.c
src/test/examples/testlo64.c