diff options
author | Kevin Grittner <kgrittn@postgresql.org> | 2017-04-01 15:21:05 -0500 |
---|---|---|
committer | Kevin Grittner <kgrittn@postgresql.org> | 2017-04-01 15:21:05 -0500 |
commit | 41bd155dd656e7f17c02855be7aff234843347cd (patch) | |
tree | 2b5181cbab8739e2772fa0eb3d7f72d6df0a795f /src/backend/commands/prepare.c | |
parent | c655899ba9ae2a0d24e99c797167c33e0cfa0820 (diff) | |
download | postgresql-41bd155dd656e7f17c02855be7aff234843347cd.tar.gz postgresql-41bd155dd656e7f17c02855be7aff234843347cd.zip |
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
Diffstat (limited to 'src/backend/commands/prepare.c')
-rw-r--r-- | src/backend/commands/prepare.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/prepare.c b/src/backend/commands/prepare.c index 5b3f777f2c3..00cc5139208 100644 --- a/src/backend/commands/prepare.c +++ b/src/backend/commands/prepare.c @@ -91,7 +91,7 @@ PrepareQuery(PrepareStmt *stmt, const char *queryString, * to see the unmodified raw parse tree. */ plansource = CreateCachedPlan(rawstmt, queryString, - CreateCommandTag(stmt->query), NULL); + CreateCommandTag(stmt->query)); /* Transform list of TypeNames to array of type OIDs */ nargs = list_length(stmt->argtypes); |