Update error message for COPY with a multi-byte delimiter.

This commit is contained in:
Bruce Momjian 2007-04-18 00:38:57 +00:00
parent 739425dbe3
commit 4029a5af9b
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.280 2007/04/16 01:14:55 tgl Exp $
* $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.281 2007/04/18 00:38:57 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -857,7 +857,7 @@ DoCopy(const CopyStmt *stmt, const char *queryString)
if (strlen(cstate->delim) != 1)
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("COPY delimiter must be a single character")));
errmsg("COPY delimiter must be a single ASCII character")));
/* Disallow end-of-line characters */
if (strchr(cstate->delim, '\r') != NULL ||