Add comment about the two different query strings that ExecuteQuery()
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 21 Jul 2008 15:26:55 +0000 (15:26 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 21 Jul 2008 15:26:55 +0000 (15:26 +0000)
has to deal with.

src/backend/commands/prepare.c

index 03713ee3cbdb887e2ae0f4131885dea0dc5ecb92..88195d5bd8d4f1dc868e75be01f159110a9d49cd 100644 (file)
@@ -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,