diff --git a/src/backend/parser/parse_target.c b/src/backend/parser/parse_target.c index 3d31be38d5..5a342b6fc7 100644 --- a/src/backend/parser/parse_target.c +++ b/src/backend/parser/parse_target.c @@ -219,7 +219,9 @@ transformTargetList(ParseState *pstate, List *targetlist, * This is the identical transformation to transformTargetList, except that * the input list elements are bare expressions without ResTarget decoration, * and the output elements are likewise just expressions without TargetEntry - * decoration. We use this for ROW() and VALUES() constructs. + * decoration. Also, we don't expect any multiassign constructs within the + * list, so there's nothing to do for that. We use this for ROW() and + * VALUES() constructs. * * exprKind is not enough to tell us whether to allow SetToDefault, so * an additional flag is needed for that. @@ -281,9 +283,6 @@ transformExpressionList(ParseState *pstate, List *exprlist, result = lappend(result, e); } - /* Shouldn't have any multiassign items here */ - Assert(pstate->p_multiassign_exprs == NIL); - return result; }