summaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_clause.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2021-07-19 08:01:40 +0200
committerPeter Eisentraut <peter@eisentraut.org>2021-07-19 08:20:24 +0200
commit2b00db4fb0c7f02f000276bfadaab65a14059168 (patch)
treebe8cdeaa98656fe52c7bbd47e68a221b16840308 /src/backend/parser/parse_clause.c
parent29abde637bbb4b8fcdc96e049813890afa5ab671 (diff)
downloadpostgresql-2b00db4fb0c7f02f000276bfadaab65a14059168.tar.gz
Use l*_node() family of functions where appropriate
Instead of castNode(…, lfoo(…)) Author: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> Discussion: https://www.postgresql.org/message-id/flat/87eecahraj.fsf@wibble.ilmari.org
Diffstat (limited to 'src/backend/parser/parse_clause.c')
-rw-r--r--src/backend/parser/parse_clause.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/parser/parse_clause.c b/src/backend/parser/parse_clause.c
index 71c360bea5..b3f151d33b 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,