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

Commit9d25e1a

Browse files
committed
Clean up cpluspluscheck violation.
"operator" is a reserved word in C++, so per project conventions,don't use it as an identifier in header files.My oversight in commita808186.
1 parent2117c3c commit9d25e1a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎src/backend/utils/adt/selfuncs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ histogram_selectivity(VariableStatData *vardata, FmgrInfo *opproc,
848848
* Otherwise, fall back to the default selectivity provided by the caller.
849849
*/
850850
double
851-
generic_restriction_selectivity(PlannerInfo*root,Oidoperator,
851+
generic_restriction_selectivity(PlannerInfo*root,Oidoproid,
852852
List*args,intvarRelid,
853853
doubledefault_selectivity)
854854
{
@@ -886,7 +886,7 @@ generic_restriction_selectivity(PlannerInfo *root, Oid operator,
886886
doublenullfrac;
887887
inthist_size;
888888

889-
fmgr_info(get_opcode(operator),&opproc);
889+
fmgr_info(get_opcode(oproid),&opproc);
890890

891891
/*
892892
* Calculate the selectivity for the column's most common values.

‎src/include/utils/selfuncs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ extern double histogram_selectivity(VariableStatData *vardata, FmgrInfo *opproc,
151151
Datumconstval,boolvaronleft,
152152
intmin_hist_size,intn_skip,
153153
int*hist_size);
154-
externdoublegeneric_restriction_selectivity(PlannerInfo*root,Oidoperator,
154+
externdoublegeneric_restriction_selectivity(PlannerInfo*root,Oidoproid,
155155
List*args,intvarRelid,
156156
doubledefault_selectivity);
157157
externdoubleineq_histogram_selectivity(PlannerInfo*root,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp