mirror of https://github.com/citusdata/citus.git
AddressSanitizer: stack-use-after-scope on distributed_planner.c
parent
1306947623
commit
f992c8d4f7
|
@ -2550,12 +2550,13 @@ HasUnresolvedExternParamsWalker(Node *expression, ParamListInfo boundParams)
|
||||||
if (boundParams && paramId > 0 && paramId <= boundParams->numParams)
|
if (boundParams && paramId > 0 && paramId <= boundParams->numParams)
|
||||||
{
|
{
|
||||||
Oid paramType;
|
Oid paramType;
|
||||||
|
|
||||||
/* give hook a chance in case parameter is dynamic */
|
/* give hook a chance in case parameter is dynamic */
|
||||||
if (boundParams->paramFetch != NULL)
|
if (boundParams->paramFetch != NULL)
|
||||||
{
|
{
|
||||||
ParamExternData externParamPlaceholder;
|
ParamExternData externParamPlaceholder;
|
||||||
paramType = (*boundParams->paramFetch)(boundParams, paramId, false,
|
paramType = (*boundParams->paramFetch)(boundParams, paramId, false,
|
||||||
&externParamPlaceholder)->ptype;
|
&externParamPlaceholder)->ptype;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue