|
10 | 10 | * Copyright (c) 2002-2008, PostgreSQL Global Development Group |
11 | 11 | * |
12 | 12 | * IDENTIFICATION |
13 | | - * $PostgreSQL: pgsql/src/backend/commands/prepare.c,v 1.88 2008/07/18 20:26:06 tgl Exp $ |
| 13 | + * $PostgreSQL: pgsql/src/backend/commands/prepare.c,v 1.89 2008/07/21 15:26:55 tgl Exp $ |
14 | 14 | * |
15 | 15 | *------------------------------------------------------------------------- |
16 | 16 | */ |
@@ -162,6 +162,12 @@ PrepareQuery(PrepareStmt *stmt, const char *queryString) |
162 | 162 |
|
163 | 163 | /* |
164 | 164 | * Implements the 'EXECUTE' utility statement. |
| 165 | + * |
| 166 | + * Note: this is one of very few places in the code that needs to deal with |
| 167 | + * two query strings at once. The passed-in queryString is that of the |
| 168 | + * EXECUTE, which we might need for error reporting while processing the |
| 169 | + * parameter expressions. The query_string that we copy from the plan |
| 170 | + * source is that of the original PREPARE. |
165 | 171 | */ |
166 | 172 | void |
167 | 173 | ExecuteQuery(ExecuteStmt*stmt,constchar*queryString, |
|