mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03:00
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
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user