From 2b00db4fb0c7f02f000276bfadaab65a14059168 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 19 Jul 2021 08:01:40 +0200 Subject: Use l*_node() family of functions where appropriate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead of castNode(…, lfoo(…)) Author: Dagfinn Ilmari Mannsåker Discussion: https://www.postgresql.org/message-id/flat/87eecahraj.fsf@wibble.ilmari.org --- src/backend/executor/execPartition.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend/executor/execPartition.c') diff --git a/src/backend/executor/execPartition.c b/src/backend/executor/execPartition.c index 606c920b068..5c723bc54e1 100644 --- a/src/backend/executor/execPartition.c +++ b/src/backend/executor/execPartition.c @@ -585,7 +585,7 @@ ExecInitPartitionInfo(ModifyTableState *mtstate, EState *estate, foreach(ll, wcoList) { - WithCheckOption *wco = castNode(WithCheckOption, lfirst(ll)); + WithCheckOption *wco = lfirst_node(WithCheckOption, ll); ExprState *wcoExpr = ExecInitQual(castNode(List, wco->qual), &mtstate->ps); -- cgit v1.2.3