1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-14 18:42:34 +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:
Bruce Momjian
2006-08-29 02:11:30 +00:00
parent 216bb6662a
commit bc24d5b976
7 changed files with 78 additions and 58 deletions

View File

@ -14,7 +14,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/portalcmds.c,v 1.50 2006/08/12 20:05:54 tgl Exp $
* $PostgreSQL: pgsql/src/backend/commands/portalcmds.c,v 1.51 2006/08/29 02:11:29 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -114,6 +114,7 @@ PerformCursorOpen(DeclareCursorStmt *stmt, ParamListInfo params)
PortalDefineQuery(portal,
NULL,
pstrdup(debug_query_string),
NULL,
"SELECT", /* cursor's query is always a SELECT */
list_make1(query),
list_make1(plan),