projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7d76f1
)
Back-patch fix for followings:
author
Tatsuo Ishii
<ishii@postgresql.org>
Wed, 27 Feb 2002 01:47:31 +0000
(
01:47
+0000)
committer
Tatsuo Ishii
<ishii@postgresql.org>
Wed, 27 Feb 2002 01:47:31 +0000
(
01:47
+0000)
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
src/backend/commands/copy.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/commands/copy.c
b/src/backend/commands/copy.c
index 9508b307f1127cdcd49119a40349bb670ddd3690..d76e5b6b63428871bebac371949ab2f36a5be2ae 100644
(file)
--- a/
src/backend/commands/copy.c
+++ b/
src/backend/commands/copy.c
@@
-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;