Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit74b4d78

Browse files
author
Amit Kapila
committed
Removal unused function parameter in CopyReadBinaryAttribute.
The function parameter column_no is not used in CopyReadBinaryAttribute,this can be removed.Commit0e319c7 removed the usage of column_no parameter in functionCopyReadBinaryAttribute but forgot to remove the parameter.Reported-by: Vignesh CAuthor: Vignesh CDiscussion:https://postgr.es/m/CALDaNm1TYSNTfqx_jfz9_mwEZ2Er=dZnu++duXpC1uQo1cG=WA@mail.gmail.com
1 parentae3259c commit74b4d78

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

‎src/backend/commands/copy.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,7 @@ static bool CopyReadLine(CopyState cstate);
367367
staticboolCopyReadLineText(CopyStatecstate);
368368
staticintCopyReadAttributesText(CopyStatecstate);
369369
staticintCopyReadAttributesCSV(CopyStatecstate);
370-
staticDatumCopyReadBinaryAttribute(CopyStatecstate,
371-
intcolumn_no,FmgrInfo*flinfo,
370+
staticDatumCopyReadBinaryAttribute(CopyStatecstate,FmgrInfo*flinfo,
372371
Oidtypioparam,int32typmod,
373372
bool*isnull);
374373
staticvoidCopyAttributeOutText(CopyStatecstate,char*string);
@@ -3776,17 +3775,14 @@ NextCopyFrom(CopyState cstate, ExprContext *econtext,
37763775
errmsg("row field count is %d, expected %d",
37773776
(int)fld_count,attr_count)));
37783777

3779-
i=0;
37803778
foreach(cur,cstate->attnumlist)
37813779
{
37823780
intattnum=lfirst_int(cur);
37833781
intm=attnum-1;
37843782
Form_pg_attributeatt=TupleDescAttr(tupDesc,m);
37853783

37863784
cstate->cur_attname=NameStr(att->attname);
3787-
i++;
37883785
values[m]=CopyReadBinaryAttribute(cstate,
3789-
i,
37903786
&in_functions[m],
37913787
typioparams[m],
37923788
att->atttypmod,
@@ -4714,8 +4710,7 @@ CopyReadAttributesCSV(CopyState cstate)
47144710
* Read a binary attribute
47154711
*/
47164712
staticDatum
4717-
CopyReadBinaryAttribute(CopyStatecstate,
4718-
intcolumn_no,FmgrInfo*flinfo,
4713+
CopyReadBinaryAttribute(CopyStatecstate,FmgrInfo*flinfo,
47194714
Oidtypioparam,int32typmod,
47204715
bool*isnull)
47214716
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp