Skip to content

Commit f24909a

Browse files
committed
Remove the off-by-one correction which doesn't work now 🤷
1 parent 50239ea commit f24909a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/node_funcs.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,10 @@
55

66
static ParamExternData *get_param_data(ParamListInfo bound_params, int one_based_paramid)
77
{
8-
#if PG_MAJORVERSION_NUM == 13
9-
int paramid = one_based_paramid;
10-
#else
11-
int paramid = one_based_paramid - 1;
12-
#endif
138
if (bound_params->paramFetch != NULL)
14-
return bound_params->paramFetch(bound_params, paramid, true, NULL);
9+
return bound_params->paramFetch(bound_params, one_based_paramid - 1, true, NULL);
1510
else
16-
return &bound_params->params[paramid];
11+
return &bound_params->params[one_based_paramid - 1];
1712
}
1813

1914
bool is_simple_constant(Node *node)

0 commit comments

Comments
 (0)