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/executor | |
parent | 216bb6662a7bd9a437cedb41b153f68e61c464dc (diff) | |
download | postgresql-bc24d5b97673c365f19be21f83acca3c184cf1a7.tar.gz postgresql-bc24d5b97673c365f19be21f83acca3c184cf1a7.zip |
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/executor')
-rw-r--r-- | src/backend/executor/spi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/executor/spi.c b/src/backend/executor/spi.c index dd22a2dd5f2..3db05898871 100644 --- a/src/backend/executor/spi.c +++ b/src/backend/executor/spi.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/executor/spi.c,v 1.158 2006/08/27 23:47:57 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/executor/spi.c,v 1.159 2006/08/29 02:11:29 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -920,6 +920,7 @@ SPI_cursor_open(const char *name, void *plan, PortalDefineQuery(portal, NULL, /* no statement name */ spiplan->query, + NULL, CreateQueryTag(PortalListGetPrimaryQuery(qtlist)), qtlist, ptlist, |