diff options
| author | Bruce Momjian | 1998-05-06 23:53:48 +0000 |
|---|---|---|
| committer | Bruce Momjian | 1998-05-06 23:53:48 +0000 |
| commit | 1c2d9cb63774f46f70f20ca8daa70f451886da1f (patch) | |
| tree | cd2d311458fb6399644a1b1aa64b09cd3c908549 /src/bin | |
| parent | edbd51395c425795b3ccacbc9d26044beb1a1277 (diff) | |
It seems the regression tests don't cover copy in/out at all, so
code that I had assumed was working had not been tested. Naturally,
it was broken ...
Tom Lane
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/pg_dump/pg_dump.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 50b4b99514..f386231d14 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -21,7 +21,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.70 1998/04/07 22:36:38 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.71 1998/05/06 23:53:27 momjian Exp $ * * Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb * @@ -230,7 +230,8 @@ dumpClasses_nodumpData(FILE *fout, const char *classname, const bool oids) sprintf(query, "COPY %s TO stdout;\n", fmtId(classname)); } res = PQexec(g_conn, query); - if (!res) + if (!res || + PQresultStatus(res) == PGRES_FATAL_ERROR) { fprintf(stderr, "SQL query to dump the contents of Table %s " "did not execute. Explanation from backend: '%s'.\n" |
