mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Editorialize a bit on new ProcessUtility() API.
Choose a saner ordering of parameters (adding a new input param after the output params seemed a bit random), update the function's header comment to match reality (cmon folks, is this really that hard?), get rid of useless and sloppily-defined distinction between PROCESS_UTILITY_SUBCOMMAND and PROCESS_UTILITY_GENERATED.
This commit is contained in:
@ -831,10 +831,10 @@ postquel_getnext(execution_state *es, SQLFunctionCachePtr fcache)
|
||||
(Node *) es->qd->plannedstmt :
|
||||
es->qd->utilitystmt),
|
||||
fcache->src,
|
||||
PROCESS_UTILITY_QUERY,
|
||||
es->qd->params,
|
||||
es->qd->dest,
|
||||
NULL,
|
||||
PROCESS_UTILITY_QUERY);
|
||||
NULL);
|
||||
result = true; /* never stops early */
|
||||
}
|
||||
else
|
||||
|
@ -2093,10 +2093,10 @@ _SPI_execute_plan(SPIPlanPtr plan, ParamListInfo paramLI,
|
||||
|
||||
ProcessUtility(stmt,
|
||||
plansource->query_string,
|
||||
PROCESS_UTILITY_QUERY,
|
||||
paramLI,
|
||||
dest,
|
||||
completionTag,
|
||||
PROCESS_UTILITY_QUERY);
|
||||
completionTag);
|
||||
|
||||
/* Update "processed" if stmt returned tuples */
|
||||
if (_SPI_current->tuptable)
|
||||
|
Reference in New Issue
Block a user