diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-07-21 15:26:55 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-07-21 15:26:55 +0000 |
commit | b351eba20aa78c086cbe535d72d403315a142b52 (patch) | |
tree | 5545465f8d2da98f2f22ab9e75510af1abac1d3c | |
parent | 5618ece82b49c06c6ee9509f07760b8e5b283973 (diff) | |
download | postgresql-b351eba20aa78c086cbe535d72d403315a142b52.tar.gz postgresql-b351eba20aa78c086cbe535d72d403315a142b52.zip |
Add comment about the two different query strings that ExecuteQuery()
has to deal with.
-rw-r--r-- | src/backend/commands/prepare.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/backend/commands/prepare.c b/src/backend/commands/prepare.c index bf6aad1ac14..fe716c5e9f6 100644 --- a/src/backend/commands/prepare.c +++ b/src/backend/commands/prepare.c @@ -10,7 +10,7 @@ * Copyright (c) 2002-2008, PostgreSQL Global Development Group * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/prepare.c,v 1.88 2008/07/18 20:26:06 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/commands/prepare.c,v 1.89 2008/07/21 15:26:55 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -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, |