aboutsummaryrefslogtreecommitdiff
path: root/src/pq
diff options
context:
space:
mode:
Diffstat (limited to 'src/pq')
-rw-r--r--src/pq/test_pq.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pq/test_pq.c b/src/pq/test_pq.c
index 7bcb10980..b09354af8 100644
--- a/src/pq/test_pq.c
+++ b/src/pq/test_pq.c
@@ -238,6 +238,12 @@ main (int argc,
238 NULL, 238 NULL,
239 es, 239 es,
240 NULL); 240 NULL);
241 if (NULL == db)
242 {
243 fprintf (stderr,
244 "Cannot run test, database connection failed\n");
245 return 77;
246 }
241 if (CONNECTION_OK != PQstatus (db->conn)) 247 if (CONNECTION_OK != PQstatus (db->conn))
242 { 248 {
243 fprintf (stderr, 249 fprintf (stderr,