projects
/
users
/
simon
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99a078f
)
Add comment about the two different query strings that ExecuteQuery()
author
Tom Lane
<tgl@sss.pgh.pa.us>
Mon, 21 Jul 2008 15:26:55 +0000
(15:26 +0000)
committer
Tom 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
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/commands/prepare.c
b/src/backend/commands/prepare.c
index 03713ee3cbdb887e2ae0f4131885dea0dc5ecb92..88195d5bd8d4f1dc868e75be01f159110a9d49cd 100644
(file)
--- 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,