summaryrefslogtreecommitdiff
path: root/src/backend/commands/copy.c
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2002-02-27 01:47:31 +0000
committerTatsuo Ishii <ishii@postgresql.org>2002-02-27 01:47:31 +0000
commit567f9d054f60ef51f71b4962c12ebef4e100caf2 (patch)
tree998e89d842747f257a545b6d61bb24227c43f25e /src/backend/commands/copy.c
parent75c07d5b4d9361063502399720fce4881b0e4b7b (diff)
Back-patch fix for followings:
Fix bug in COPY FROM when DELIMITER is not in ASCII range. See pgsql-bugs/pgsql-hackers discussion "COPY FROM is not 8bit clean" around 2002/02/26 for more details -- Tatsuo Ishii
Diffstat (limited to 'src/backend/commands/copy.c')
-rw-r--r--src/backend/commands/copy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/copy.c b/src/backend/commands/copy.c
index f42b865687c..d49788b8e18 100644
--- a/src/backend/commands/copy.c
+++ b/src/backend/commands/copy.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.145 2002/02/12 21:25:41 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.145.2.1 2002/02/27 01:47:31 ishii Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1024,7 +1024,7 @@ static char *
CopyReadAttribute(FILE *fp, bool *isnull, char *delim, int *newline, char *null_print)
{
int c;
- int delimc = delim[0];
+ int delimc = (unsigned char)delim[0];
#ifdef MULTIBYTE
int mblen;