diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2020-01-04 11:56:58 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2020-01-04 13:12:41 +0100 |
commit | 3fd40b628c7db4c4bcf03b548f9a55f85e327e25 (patch) | |
tree | 5db105f66b7f6b3fd753e8d43abc0455d7e25dbe /src/include/commands/prepare.h | |
parent | d2e5e20e57111cca9e14f6e5a99a186d4c66a5b7 (diff) |
Make better use of ParseState in ProcessUtility
Pass ParseState into the functions called from
standard_ProcessUtility() instead passing the query string and query
environment separately. No functionality change, but it makes the
notation consistent. We had already started moving things into
that direction piece by piece, and this completes it.
Reviewed-by: Pavel Stehule <pavel.stehule@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/6e7aa4a1-be6a-1a75-b1f9-83a678e5184a@2ndquadrant.com
Diffstat (limited to 'src/include/commands/prepare.h')
-rw-r--r-- | src/include/commands/prepare.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/include/commands/prepare.h b/src/include/commands/prepare.h index 9d09fb2b122..a0509e1f33f 100644 --- a/src/include/commands/prepare.h +++ b/src/include/commands/prepare.h @@ -35,10 +35,11 @@ typedef struct /* Utility statements PREPARE, EXECUTE, DEALLOCATE, EXPLAIN EXECUTE */ -extern void PrepareQuery(PrepareStmt *stmt, const char *queryString, +extern void PrepareQuery(ParseState *pstate, PrepareStmt *stmt, int stmt_location, int stmt_len); -extern void ExecuteQuery(ExecuteStmt *stmt, IntoClause *intoClause, - const char *queryString, ParamListInfo params, +extern void ExecuteQuery(ParseState *pstate, + ExecuteStmt *stmt, IntoClause *intoClause, + ParamListInfo params, DestReceiver *dest, char *completionTag); extern void DeallocateQuery(DeallocateStmt *stmt); extern void ExplainExecuteQuery(ExecuteStmt *execstmt, IntoClause *into, |