mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03:00
Remove no-longer-used RTE argument of markVarForSelectPriv().
In the wake of c028faf2a
, this is no longer needed. I left it
out of that patch since the API change would be undesirable in
a released branch; but there's no reason not to do it in HEAD.
This commit is contained in:
@ -58,7 +58,6 @@ static int extractRemainingColumns(ParseNamespaceColumn *src_nscolumns,
|
||||
List **res_colnames, List **res_colvars,
|
||||
ParseNamespaceColumn *res_nscolumns);
|
||||
static Node *transformJoinUsingClause(ParseState *pstate,
|
||||
RangeTblEntry *leftRTE, RangeTblEntry *rightRTE,
|
||||
List *leftVars, List *rightVars);
|
||||
static Node *transformJoinOnClause(ParseState *pstate, JoinExpr *j,
|
||||
List *namespace);
|
||||
@ -302,7 +301,6 @@ extractRemainingColumns(ParseNamespaceColumn *src_nscolumns,
|
||||
*/
|
||||
static Node *
|
||||
transformJoinUsingClause(ParseState *pstate,
|
||||
RangeTblEntry *leftRTE, RangeTblEntry *rightRTE,
|
||||
List *leftVars, List *rightVars)
|
||||
{
|
||||
Node *result;
|
||||
@ -325,8 +323,8 @@ transformJoinUsingClause(ParseState *pstate,
|
||||
A_Expr *e;
|
||||
|
||||
/* Require read access to the join variables */
|
||||
markVarForSelectPriv(pstate, lvar, leftRTE);
|
||||
markVarForSelectPriv(pstate, rvar, rightRTE);
|
||||
markVarForSelectPriv(pstate, lvar);
|
||||
markVarForSelectPriv(pstate, rvar);
|
||||
|
||||
/* Now create the lvar = rvar join condition */
|
||||
e = makeSimpleA_Expr(AEXPR_OP, "=",
|
||||
@ -1411,8 +1409,6 @@ transformFromClauseItem(ParseState *pstate, Node *n,
|
||||
}
|
||||
|
||||
j->quals = transformJoinUsingClause(pstate,
|
||||
l_nsitem->p_rte,
|
||||
r_nsitem->p_rte,
|
||||
l_usingvars,
|
||||
r_usingvars);
|
||||
}
|
||||
|
Reference in New Issue
Block a user