mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +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:
@@ -1232,7 +1232,6 @@ transformSelectStmt(ParseState *pstate, SelectStmt *stmt)
|
||||
stmt->sortClause,
|
||||
&qry->targetList,
|
||||
EXPR_KIND_ORDER_BY,
|
||||
true /* fix unknowns */ ,
|
||||
false /* allow SQL92 rules */ );
|
||||
|
||||
qry->groupClause = transformGroupClause(pstate,
|
||||
@@ -1512,7 +1511,6 @@ transformValuesClause(ParseState *pstate, SelectStmt *stmt)
|
||||
stmt->sortClause,
|
||||
&qry->targetList,
|
||||
EXPR_KIND_ORDER_BY,
|
||||
true /* fix unknowns */ ,
|
||||
false /* allow SQL92 rules */ );
|
||||
|
||||
qry->limitOffset = transformLimitClause(pstate, stmt->limitOffset,
|
||||
@@ -1736,7 +1734,6 @@ transformSetOperationStmt(ParseState *pstate, SelectStmt *stmt)
|
||||
sortClause,
|
||||
&qry->targetList,
|
||||
EXPR_KIND_ORDER_BY,
|
||||
false /* no unknowns expected */ ,
|
||||
false /* allow SQL92 rules */ );
|
||||
|
||||
/* restore namespace, remove jrte from rtable */
|
||||
|
Reference in New Issue
Block a user