diff options
| author | Bruce Momjian <bruce@momjian.us> | 2006-08-29 02:11:30 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2006-08-29 02:11:30 +0000 |
| commit | bc24d5b97673c365f19be21f83acca3c184cf1a7 (patch) | |
| tree | e1affd83d565c2db27c0a48c368e9fe210baf9a4 /src/backend/utils | |
| 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/backend/utils')
| -rw-r--r-- | src/backend/utils/mmgr/portalmem.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/utils/mmgr/portalmem.c b/src/backend/utils/mmgr/portalmem.c index 85a6711d1cd..cae91572cc7 100644 --- a/src/backend/utils/mmgr/portalmem.c +++ b/src/backend/utils/mmgr/portalmem.c @@ -12,7 +12,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/mmgr/portalmem.c,v 1.92 2006/08/14 22:57:15 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/utils/mmgr/portalmem.c,v 1.93 2006/08/29 02:11:30 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -274,6 +274,7 @@ void PortalDefineQuery(Portal portal, const char *prepStmtName, const char *sourceText, + const char *bindText, const char *commandTag, List *parseTrees, List *planTrees, @@ -288,6 +289,7 @@ PortalDefineQuery(Portal portal, portal->prepStmtName = prepStmtName; portal->sourceText = sourceText; + portal->bindText = bindText; portal->commandTag = commandTag; portal->parseTrees = parseTrees; portal->planTrees = planTrees; |
