Fix stupid typo (mine I suppose) in CopyGetData. Per report from Dave Cramer.

This commit is contained in:
Tom Lane 2003-08-28 13:52:34 +00:00
parent 61366a9503
commit ce2ab4131a

View File

@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.209 2003/08/13 18:56:21 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.210 2003/08/28 13:52:34 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -432,7 +432,7 @@ CopyGetData(void *databuf, int datasize)
avail = datasize; avail = datasize;
pq_copymsgbytes(copy_msgbuf, databuf, avail); pq_copymsgbytes(copy_msgbuf, databuf, avail);
databuf = (void *) ((char *) databuf + avail); databuf = (void *) ((char *) databuf + avail);
datasize = -avail; datasize -= avail;
} }
break; break;
} }