summaryrefslogtreecommitdiff
path: root/src/test/examples
diff options
context:
space:
mode:
authorTom Lane1999-02-07 22:08:54 +0000
committerTom Lane1999-02-07 22:08:54 +0000
commitfa0f24165c026c522c052ac2f4ea35b97e6bbb5f (patch)
treefe059780389a2847f0bc190b4426d4a16ec526d5 /src/test/examples
parentf2802669856dafe9e26b21cc8779acf6dcbef921 (diff)
Add PQresStatus() function to avoid direct access to pgresStatus[] array,
making life easier for Windoids...
Diffstat (limited to 'src/test/examples')
-rw-r--r--src/test/examples/testlibpq2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/examples/testlibpq2.c b/src/test/examples/testlibpq2.c
index 540ed91cbfe..059e39102e2 100644
--- a/src/test/examples/testlibpq2.c
+++ b/src/test/examples/testlibpq2.c
@@ -90,7 +90,7 @@ main()
/* async notification only come back as a result of a query */
/* we can send empty queries */
res = PQexec(conn, " ");
-/* printf("res->status = %s\n", pgresStatus[PQresultStatus(res)]); */
+/* printf("res->status = %s\n", PQresStatus(PQresultStatus(res))); */
/* check for asynchronous returns */
notify = PQnotifies(conn);
if (notify)