mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
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.
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user