Apply suggestions from code review

Co-authored-by: Onur Tirtir <onurcantirtir@gmail.com>
pull/7372/head
Gürkan İndibay 2023-12-28 15:25:10 +03:00 committed by GitHub
parent d7fa9a5e36
commit bbf9581fef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -1019,8 +1019,8 @@ ExecuteTaskListOutsideTransaction(RowModifyLevel modLevel, List *taskList,
/* /*
* Prepare execution parameters for a task list.It is used by the * CreateDefaultExecutionParams returns execution params based on given (possibly null)
* functions that execute task lists. * bind params (presumably from executor state) with defaults for some of the arguments.
*/ */
static ExecutionParams * static ExecutionParams *
GetExecutionParams(RowModifyLevel modLevel, List *taskList, GetExecutionParams(RowModifyLevel modLevel, List *taskList,
@ -1069,8 +1069,9 @@ ExecuteTaskListIntoTupleDest(RowModifyLevel modLevel, List *taskList,
TupleDestination *tupleDest, TupleDestination *tupleDest,
bool expectResults) bool expectResults)
{ {
ParamListInfo paramListInfo = NULL;
ExecutionParams *executionParams = GetExecutionParams(modLevel, taskList, tupleDest, ExecutionParams *executionParams = GetExecutionParams(modLevel, taskList, tupleDest,
expectResults, NULL); expectResults, paramListInfo);
return ExecuteTaskListExtended(executionParams); return ExecuteTaskListExtended(executionParams);
} }