mirror of
https://github.com/postgres/postgres.git
synced 2025-06-17 17:02:08 +03:00
Remove vestigial resolveUnknown arguments from transformSortClause etc.
There's really no situation where we don't want these unknown-to-text conversions to happen. The alternative is failure anyway, and the one caller that was passing "false" did so only because it expected the case could not arise. Might as well simplify the code. Discussion: https://postgr.es/m/CAH2L28uwwbL9HUM-WR=hromW1Cvamkn7O-g8fPY2m=_7muJ0oA@mail.gmail.com
This commit is contained in:
@ -155,8 +155,7 @@ transformAggregateCall(ParseState *pstate, Aggref *agg,
|
||||
tlist = lappend(tlist, tle);
|
||||
|
||||
torder = addTargetToSortList(pstate, tle,
|
||||
torder, tlist, sortby,
|
||||
true /* fix unknowns */ );
|
||||
torder, tlist, sortby);
|
||||
}
|
||||
|
||||
/* Never any DISTINCT in an ordered-set agg */
|
||||
@ -196,7 +195,6 @@ transformAggregateCall(ParseState *pstate, Aggref *agg,
|
||||
aggorder,
|
||||
&tlist,
|
||||
EXPR_KIND_ORDER_BY,
|
||||
true /* fix unknowns */ ,
|
||||
true /* force SQL99 rules */ );
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user