*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/copy.c,v 1.15 2000/04/16 15:46:40 petere Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/copy.c,v 1.16 2000/12/03 15:39:38 petere Exp $
*/
#include "postgres.h"
#include "copy.h"
int bufleft;
int c = 0;
int ret;
+ unsigned int linecount=0;
#ifdef USE_ASSERT_CHECKING
assert(copy_in_state);
}
}
PQputline(conn, "\n");
+ linecount++;
}
ret = !PQendcopy(conn);
copy_in_state = false;
+ pset.lineno += linecount;
return ret;
}