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

Commiteccb607

Browse files
Fix recent cpluspluscheck issue in selfuncs.h.
Fix selfuncs.h cpluspluscheck complaint, without reintroducing aparameter name inconsistency (restore the original declaration names,and then make corresponding function definitions consistent with that).Oversight in commita601366.Author: Peter Geoghegan <pg@bowt.ie>Reported-By: Andres Freund <andres@anarazel.de>
1 parenta601366 commiteccb607

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ eqsel_internal(PG_FUNCTION_ARGS, bool negate)
290290
* This is exported so that some other estimation functions can use it.
291291
*/
292292
double
293-
var_eq_const(VariableStatData*vardata,Oidoperator,Oidcollation,
293+
var_eq_const(VariableStatData*vardata,Oidoproid,Oidcollation,
294294
Datumconstval,boolconstisnull,
295295
boolvaronleft,boolnegate)
296296
{
@@ -331,7 +331,7 @@ var_eq_const(VariableStatData *vardata, Oid operator, Oid collation,
331331
}
332332
elseif (HeapTupleIsValid(vardata->statsTuple)&&
333333
statistic_proc_security_check(vardata,
334-
(opfuncoid=get_opcode(operator))))
334+
(opfuncoid=get_opcode(oproid))))
335335
{
336336
AttStatsSlotsslot;
337337
boolmatch= false;
@@ -461,7 +461,7 @@ var_eq_const(VariableStatData *vardata, Oid operator, Oid collation,
461461
* This is exported so that some other estimation functions can use it.
462462
*/
463463
double
464-
var_eq_non_const(VariableStatData*vardata,Oidoperator,Oidcollation,
464+
var_eq_non_const(VariableStatData*vardata,Oidoproid,Oidcollation,
465465
Node*other,
466466
boolvaronleft,boolnegate)
467467
{

‎src/include/utils/selfuncs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,11 @@ extern double ineq_histogram_selectivity(PlannerInfo *root,
181181
Oidcollation,
182182
Datumconstval,Oidconsttype);
183183
externdoublevar_eq_const(VariableStatData*vardata,
184-
Oidoperator,Oidcollation,
184+
Oidoproid,Oidcollation,
185185
Datumconstval,boolconstisnull,
186186
boolvaronleft,boolnegate);
187187
externdoublevar_eq_non_const(VariableStatData*vardata,
188-
Oidoperator,Oidcollation,
188+
Oidoproid,Oidcollation,
189189
Node*other,
190190
boolvaronleft,boolnegate);
191191

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp