From c9dec217cfd1aee6e5825876e818ac5c73a382ef Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 21 Jul 2008 15:26:55 +0000 Subject: [PATCH] Add comment about the two different query strings that ExecuteQuery() has to deal with. --- src/backend/commands/prepare.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/backend/commands/prepare.c b/src/backend/commands/prepare.c index 03713ee3cb..88195d5bd8 100644 --- a/src/backend/commands/prepare.c +++ b/src/backend/commands/prepare.c @@ -162,6 +162,12 @@ PrepareQuery(PrepareStmt *stmt, const char *queryString) /* * Implements the 'EXECUTE' utility statement. + * + * Note: this is one of very few places in the code that needs to deal with + * two query strings at once. The passed-in queryString is that of the + * EXECUTE, which we might need for error reporting while processing the + * parameter expressions. The query_string that we copy from the plan + * source is that of the original PREPARE. */ void ExecuteQuery(ExecuteStmt *stmt, const char *queryString, -- 2.39.5