Improve comment about plan being NULL

per suggestion from Jelte Fennema-Nio.
pull/7288/head
Cédric Villemain 2023-10-31 12:35:45 +01:00
parent f9e46ba010
commit 60d1759d70
1 changed files with 6 additions and 1 deletions

View File

@ -525,7 +525,12 @@ ShardPlacementForFunctionColocatedWithDistTable(DistObjectCacheEntry *procedure,
if (partitionParam->paramkind == PARAM_EXTERN)
{
/* Don't log a message, we should end up here again without a parameter */
/*
* Don't log a message, we should end up here again without a
* parameter.
* Note that "plan" can be null, for example when a CALL statement
* is prepared.
*/
if (plan)
{
DissuadePlannerFromUsingPlan(plan);