mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Renaming for new subscripting mechanism
Over at patch https://commitfest.postgresql.org/21/1062/ Dmitry wants to introduce a more generic subscription mechanism, which allows subscripting not only arrays but also other object types such as JSONB. That functionality is introduced in a largish invasive patch, out of which this internal renaming patch was extracted. Author: Dmitry Dolgov Reviewed-by: Tom Lane, Arthur Zakirov Discussion: https://postgr.es/m/CA+q6zcUK4EqPAu7XRRO5CCjMwhz5zvg+rfWuLzVoxp_5sKS6=w@mail.gmail.com
This commit is contained in:
@ -465,13 +465,13 @@ transformIndirection(ParseState *pstate, A_Indirection *ind)
|
||||
|
||||
/* process subscripts before this field selection */
|
||||
if (subscripts)
|
||||
result = (Node *) transformArraySubscripts(pstate,
|
||||
result,
|
||||
exprType(result),
|
||||
InvalidOid,
|
||||
exprTypmod(result),
|
||||
subscripts,
|
||||
NULL);
|
||||
result = (Node *) transformContainerSubscripts(pstate,
|
||||
result,
|
||||
exprType(result),
|
||||
InvalidOid,
|
||||
exprTypmod(result),
|
||||
subscripts,
|
||||
NULL);
|
||||
subscripts = NIL;
|
||||
|
||||
newresult = ParseFuncOrColumn(pstate,
|
||||
@ -488,13 +488,13 @@ transformIndirection(ParseState *pstate, A_Indirection *ind)
|
||||
}
|
||||
/* process trailing subscripts, if any */
|
||||
if (subscripts)
|
||||
result = (Node *) transformArraySubscripts(pstate,
|
||||
result,
|
||||
exprType(result),
|
||||
InvalidOid,
|
||||
exprTypmod(result),
|
||||
subscripts,
|
||||
NULL);
|
||||
result = (Node *) transformContainerSubscripts(pstate,
|
||||
result,
|
||||
exprType(result),
|
||||
InvalidOid,
|
||||
exprTypmod(result),
|
||||
subscripts,
|
||||
NULL);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user