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/parser/parse_clause.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend/parser/parse_clause.c') diff --git a/src/backend/parser/parse_clause.c b/src/backend/parser/parse_clause.c index 71c360bea58..b3f151d33b5 100644 --- a/src/backend/parser/parse_clause.c +++ b/src/backend/parser/parse_clause.c @@ -2807,7 +2807,7 @@ transformWindowDefinitions(ParseState *pstate, (errcode(ERRCODE_WINDOWING_ERROR), errmsg("RANGE with offset PRECEDING/FOLLOWING requires exactly one ORDER BY column"), parser_errposition(pstate, windef->location))); - sortcl = castNode(SortGroupClause, linitial(wc->orderClause)); + sortcl = linitial_node(SortGroupClause, wc->orderClause); sortkey = get_sortgroupclause_expr(sortcl, *targetlist); /* Find the sort operator in pg_amop */ if (!get_ordering_op_properties(sortcl->sortop, -- cgit v1.2.3