diff options
author | Tom Lane | 2012-10-09 01:19:08 +0000 |
---|---|---|
committer | Tom Lane | 2012-10-09 01:19:08 +0000 |
commit | 4f03cd85979538d62cfb1c30576d98bd4534a5be (patch) | |
tree | 101bc2351f413026fed7e68b5d39d602232c8a83 | |
parent | ef23ad39be1fded9e12609c3472e328e2575647e (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 559c39c9e1d..cc41176f93f 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)); } |