Fix accidentally casting away const

Recently introduced in commit 8c2b30487c.
This commit is contained in:
Peter Eisentraut 2026-03-16 07:37:03 +01:00
parent 5f39698c90
commit a41bc38439

View file

@ -2289,7 +2289,7 @@ constructSetOpTargetlist(ParseState *pstate, SetOperationStmt *op,
errmsg("each %s query must have the same number of columns",
context),
parser_errposition(pstate,
exprLocation((Node *) rtargetlist))));
exprLocation((const Node *) rtargetlist))));
if (targetlist)
*targetlist = NIL;