Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a4e0033

Browse files
committed
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
1 parent 401874a commit a4e0033

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/include/nodes/parsenodes.h

+6-2
Original file line numberDiff line numberDiff line change
@@ -3221,14 +3221,18 @@ typedef struct InlineCodeBlock
32213221
* list contains copies of the expressions for all output arguments, in the
32223222
* order of the procedure's declared arguments. (outargs is never evaluated,
32233223
* but is useful to the caller as a reference for what to assign to.)
3224+
* The transformed call state is not relevant in the query jumbling, only the
3225+
* function call is.
32243226
* ----------------------
32253227
*/
32263228
typedef struct CallStmt
32273229
{
32283230
NodeTag type;
32293231
FuncCall *funccall; /* from the parser */
3230-
FuncExpr *funcexpr; /* transformed call, with only input args */
3231-
List *outargs; /* transformed output-argument expressions */
3232+
/* transformed call, with only input args */
3233+
FuncExpr *funcexpr pg_node_attr(query_jumble_ignore);
3234+
/* transformed output-argument expressions */
3235+
List *outargs pg_node_attr(query_jumble_ignore);
32323236
} CallStmt;
32333237

32343238
typedef struct CallContext

0 commit comments

Comments
 (0)