diff options
| author | Bruce Momjian | 2006-08-29 02:11:30 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2006-08-29 02:11:30 +0000 |
| commit | bc24d5b97673c365f19be21f83acca3c184cf1a7 (patch) | |
| tree | e1affd83d565c2db27c0a48c368e9fe210baf9a4 /src/include | |
| parent | 216bb6662a7bd9a437cedb41b153f68e61c464dc (diff) | |
Now bind displays prepare as detail, and execute displays prepare and
optionally bind. I re-added the "statement:" label so people will
understand why the line is being printed (it is log_*statement
behavior).
Use single quotes for bind values, instead of double quotes, and double
literal single quotes in bind values (and document that). I also made
use of the DETAIL line to have much cleaner output.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/utils/portal.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/include/utils/portal.h b/src/include/utils/portal.h index 92cc55189ed..bf3d503004c 100644 --- a/src/include/utils/portal.h +++ b/src/include/utils/portal.h @@ -39,7 +39,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/portal.h,v 1.66 2006/08/14 22:57:15 tgl Exp $ + * $PostgreSQL: pgsql/src/include/utils/portal.h,v 1.67 2006/08/29 02:11:30 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -122,7 +122,8 @@ typedef struct PortalData */ /* The query or queries the portal will execute */ - const char *sourceText; /* text of query, if known (may be NULL) */ + const char *sourceText; /* text of query, if known, might be NULL */ + const char *bindText; /* text of bind parameters, might be NULL */ const char *commandTag; /* command tag for original query */ List *parseTrees; /* parse tree(s) */ List *planTrees; /* plan tree(s) */ @@ -215,6 +216,7 @@ extern Portal GetPortalByName(const char *name); extern void PortalDefineQuery(Portal portal, const char *prepStmtName, const char *sourceText, + const char *bindText, const char *commandTag, List *parseTrees, List *planTrees, |
