diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-07-22 19:00:12 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-07-22 19:00:12 +0000 |
commit | b05d3ae1edf557e174f80624219854767963dc66 (patch) | |
tree | 204def9d6f61d82a5816275df9384d209ad12d55 /src/backend/commands/copy.c | |
parent | 277dbb0c34791fe2f6192d02ea577d3738666c2f (diff) | |
download | postgresql-b05d3ae1edf557e174f80624219854767963dc66.tar.gz postgresql-b05d3ae1edf557e174f80624219854767963dc66.zip |
Error message editing in backend/libpq, backend/postmaster, backend/tcop.
Along the way, fix some logic problems in pgstat_initstats, notably the
bogus assumption that malloc returns zeroed memory.
Diffstat (limited to 'src/backend/commands/copy.c')
-rw-r--r-- | src/backend/commands/copy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/copy.c b/src/backend/commands/copy.c index 07b52d9201f..976fdaa8616 100644 --- a/src/backend/commands/copy.c +++ b/src/backend/commands/copy.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.203 2003/07/21 17:04:58 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.204 2003/07/22 19:00:07 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1923,7 +1923,7 @@ CopyReadBinaryAttribute(int column_no, FmgrInfo *flinfo, Oid typelem, /* Trouble if it didn't eat the whole buffer */ if (attribute_buf.cursor != attribute_buf.len) ereport(ERROR, - (errcode(ERRCODE_BAD_COPY_FILE_FORMAT), + (errcode(ERRCODE_INVALID_BINARY_REPRESENTATION), errmsg("incorrect binary data format in field %d", column_no))); |