aboutsummaryrefslogtreecommitdiff
path: root/src/test/examples/testlo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/examples/testlo.c')
-rw-r--r--src/test/examples/testlo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/examples/testlo.c b/src/test/examples/testlo.c
index acc9edd775f..d11560f98cf 100644
--- a/src/test/examples/testlo.c
+++ b/src/test/examples/testlo.c
@@ -251,7 +251,7 @@ main(int argc, char **argv)
printf("exporting large object to file \"%s\" ...\n", out_filename);
/* exportFile(conn, lobjOid, out_filename); */
- if (!lo_export(conn, lobjOid, out_filename))
+ if (lo_export(conn, lobjOid, out_filename) < 0)
fprintf(stderr, "%s\n", PQerrorMessage(conn));
}