]> granicus.if.org Git - postgresql/commit
Fix libpq example programs
authorPeter Eisentraut <peter_e@gmx.net>
Sun, 1 Jul 2018 12:06:40 +0000 (14:06 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Sun, 1 Jul 2018 12:06:40 +0000 (14:06 +0200)
commit7bdea6263543c0dabf4d374b3c8d2c3a1d91649e
tree0bfaffd909661862c49b01274d7f1519b0701b15
parent56b4da8c9d11f685f1fe2e11cf015e850913b6b8
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>
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