Fixed a botched patch...
Pointed out by Andrew...
This commit is contained in:
parent
20d44ee41f
commit
0022dea05e
@ -6,7 +6,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.2.2.3 1996/10/28 22:09:30 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.2.2.4 1996/10/29 19:03:48 scrappy Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -734,6 +734,7 @@ CopyReadAttribute(FILE *fp, bool *isnull, char *delim)
|
|||||||
int done = 0;
|
int done = 0;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
|
*isnull = (bool) false; /* set default */
|
||||||
if (feof(fp))
|
if (feof(fp))
|
||||||
return(NULL);
|
return(NULL);
|
||||||
|
|
||||||
@ -742,7 +743,7 @@ CopyReadAttribute(FILE *fp, bool *isnull, char *delim)
|
|||||||
|
|
||||||
if (feof(fp))
|
if (feof(fp))
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}else if (c == '\\') {
|
else if (c == '\\') {
|
||||||
c = getc(fp);
|
c = getc(fp);
|
||||||
#ifdef ESCAPE_PATCH
|
#ifdef ESCAPE_PATCH
|
||||||
#define ISOCTAL(c) (((c) >= '0') && ((c) <= '7'))
|
#define ISOCTAL(c) (((c) >= '0') && ((c) <= '7'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user