Skip to content

Commit 9d25e1a

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 commit a808186.
1 parent 2117c3c commit 9d25e1a

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, Oid operator,
851+
generic_restriction_selectivity(PlannerInfo *root, Oid oproid,
852852
List *args, int varRelid,
853853
double default_selectivity)
854854
{
@@ -886,7 +886,7 @@ generic_restriction_selectivity(PlannerInfo *root, Oid operator,
886886
double nullfrac;
887887
int hist_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
Datum constval, bool varonleft,
152152
int min_hist_size, int n_skip,
153153
int *hist_size);
154-
extern double generic_restriction_selectivity(PlannerInfo *root, Oid operator,
154+
extern double generic_restriction_selectivity(PlannerInfo *root, Oid oproid,
155155
List *args, int varRelid,
156156
double default_selectivity);
157157
extern double ineq_histogram_selectivity(PlannerInfo *root,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy