diff options
author | Tom Lane | 2012-10-09 01:18:57 +0000 |
---|---|---|
committer | Tom Lane | 2012-10-09 01:18:57 +0000 |
commit | a883c02449cf86a657838303213d11ad85939b1d (patch) | |
tree | c6f392dd73965010b41788a589877002280e2602 | |
parent | 3c856708e56ceb7025066a800c95b7293e9bd3f5 (diff) |
Fix lo_export usage in example programs.
lo_export returns -1, not zero, on failure.
-rw-r--r-- | src/test/examples/testlo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/examples/testlo.c b/src/test/examples/testlo.c index 3fd97de995c..04539edd417 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)); } |