mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-27 22:52:07 +02:00
Refine query jumbling handling for CallStmt
Previously, all the nodes of CallStmt were included in the jumbling, causing a duplicate in the computation as the transformed state of the CALL query was included as well as the parsed state (transformed FuncCall with all the input arguments and potential output arguments). Reviewed-by: Bertrand Drouvot Discussion: https://postgr.es/m/Y+MRdEq9W9XVa2AB@paquier.xyz
This commit is contained in:
parent
401874ab02
commit
a4e003338d
@ -3221,14 +3221,18 @@ typedef struct InlineCodeBlock
|
||||
* list contains copies of the expressions for all output arguments, in the
|
||||
* order of the procedure's declared arguments. (outargs is never evaluated,
|
||||
* but is useful to the caller as a reference for what to assign to.)
|
||||
* The transformed call state is not relevant in the query jumbling, only the
|
||||
* function call is.
|
||||
* ----------------------
|
||||
*/
|
||||
typedef struct CallStmt
|
||||
{
|
||||
NodeTag type;
|
||||
FuncCall *funccall; /* from the parser */
|
||||
FuncExpr *funcexpr; /* transformed call, with only input args */
|
||||
List *outargs; /* transformed output-argument expressions */
|
||||
/* transformed call, with only input args */
|
||||
FuncExpr *funcexpr pg_node_attr(query_jumble_ignore);
|
||||
/* transformed output-argument expressions */
|
||||
List *outargs pg_node_attr(query_jumble_ignore);
|
||||
} CallStmt;
|
||||
|
||||
typedef struct CallContext
|
||||
|
Loading…
Reference in New Issue
Block a user