@@ -367,8 +367,7 @@ static bool CopyReadLine(CopyState cstate);
367
367
static bool CopyReadLineText (CopyState cstate );
368
368
static int CopyReadAttributesText (CopyState cstate );
369
369
static int CopyReadAttributesCSV (CopyState cstate );
370
- static Datum CopyReadBinaryAttribute (CopyState cstate ,
371
- int column_no , FmgrInfo * flinfo ,
370
+ static Datum CopyReadBinaryAttribute (CopyState cstate , FmgrInfo * flinfo ,
372
371
Oid typioparam , int32 typmod ,
373
372
bool * isnull );
374
373
static void CopyAttributeOutText (CopyState cstate , char * string );
@@ -3776,17 +3775,14 @@ NextCopyFrom(CopyState cstate, ExprContext *econtext,
3776
3775
errmsg ("row field count is %d, expected %d" ,
3777
3776
(int ) fld_count , attr_count )));
3778
3777
3779
- i = 0 ;
3780
3778
foreach (cur , cstate -> attnumlist )
3781
3779
{
3782
3780
int attnum = lfirst_int (cur );
3783
3781
int m = attnum - 1 ;
3784
3782
Form_pg_attribute att = TupleDescAttr (tupDesc , m );
3785
3783
3786
3784
cstate -> cur_attname = NameStr (att -> attname );
3787
- i ++ ;
3788
3785
values [m ] = CopyReadBinaryAttribute (cstate ,
3789
- i ,
3790
3786
& in_functions [m ],
3791
3787
typioparams [m ],
3792
3788
att -> atttypmod ,
@@ -4714,8 +4710,7 @@ CopyReadAttributesCSV(CopyState cstate)
4714
4710
* Read a binary attribute
4715
4711
*/
4716
4712
static Datum
4717
- CopyReadBinaryAttribute (CopyState cstate ,
4718
- int column_no , FmgrInfo * flinfo ,
4713
+ CopyReadBinaryAttribute (CopyState cstate , FmgrInfo * flinfo ,
4719
4714
Oid typioparam , int32 typmod ,
4720
4715
bool * isnull )
4721
4716
{
0 commit comments