mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
Fix two undocumented parameters to functions from ENR patch.
On ProcessUtility document the parameter, to match others. On CreateCachedPlan drop the queryEnv parameter. It was not referenced within the function, and had been added on the assumption that with some unknown future usage of QueryEnvironment it might be useful to do something there. We have avoided other "just in case" implementation of unused paramters, so drop it here. Per gripe from Tom Lane
This commit is contained in:
@ -1777,8 +1777,7 @@ _SPI_prepare_plan(const char *src, SPIPlanPtr plan)
|
||||
*/
|
||||
plansource = CreateCachedPlan(parsetree,
|
||||
src,
|
||||
CreateCommandTag(parsetree->stmt),
|
||||
_SPI_current->queryEnv);
|
||||
CreateCommandTag(parsetree->stmt));
|
||||
|
||||
/*
|
||||
* Parameter datatypes are driven by parserSetup hook if provided,
|
||||
|
Reference in New Issue
Block a user