88 *
99 *
1010 * IDENTIFICATION
11- * $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.305 2009/02/06 21:15:11 tgl Exp $
11+ * $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.306 2009/03/26 19:24:54 tgl Exp $
1212 *
1313 *-------------------------------------------------------------------------
1414 */
@@ -855,11 +855,11 @@ DoCopy(const CopyStmt *stmt, const char *queryString)
855855 cstate -> escape = cstate -> quote ;
856856 }
857857
858- /* Only single-character delimiter strings are supported. */
858+ /* Only single-byte delimiter strings are supported. */
859859 if (strlen (cstate -> delim ) != 1 )
860860 ereport (ERROR ,
861861 (errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
862- errmsg ("COPY delimiter must be a single ASCII character" )));
862+ errmsg ("COPY delimiter must be a single one-byte character" )));
863863
864864 /* Disallow end-of-line characters */
865865 if (strchr (cstate -> delim , '\r' ) != NULL ||
@@ -906,7 +906,7 @@ DoCopy(const CopyStmt *stmt, const char *queryString)
906906 if (cstate -> csv_mode && strlen (cstate -> quote ) != 1 )
907907 ereport (ERROR ,
908908 (errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
909- errmsg ("COPY quote must be a single ASCII character" )));
909+ errmsg ("COPY quote must be a single one-byte character" )));
910910
911911 if (cstate -> csv_mode && cstate -> delim [0 ] == cstate -> quote [0 ])
912912 ereport (ERROR ,
@@ -922,7 +922,7 @@ DoCopy(const CopyStmt *stmt, const char *queryString)
922922 if (cstate -> csv_mode && strlen (cstate -> escape ) != 1 )
923923 ereport (ERROR ,
924924 (errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
925- errmsg ("COPY escape must be a single ASCII character" )));
925+ errmsg ("COPY escape must be a single one-byte character" )));
926926
927927 /* Check force_quote */
928928 if (!cstate -> csv_mode && force_quote != NIL )
0 commit comments