]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix accidentally casting away const
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 16 Mar 2026 06:37:03 +0000 (07:37 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 16 Mar 2026 06:37:03 +0000 (07:37 +0100)
Recently introduced in commit 8c2b30487cc.

src/backend/parser/analyze.c

index 15cc6240203ef7fb7fc0633e64ac5965664eabc1..3f669a6eb26fb204cb5e4047e956e769110c73fb 100644 (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;