From bc24d5b97673c365f19be21f83acca3c184cf1a7 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 29 Aug 2006 02:11:30 +0000 Subject: 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. --- src/backend/commands/portalcmds.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/backend/commands/portalcmds.c') diff --git a/src/backend/commands/portalcmds.c b/src/backend/commands/portalcmds.c index 0685426a2f2..47e2829b7b3 100644 --- a/src/backend/commands/portalcmds.c +++ b/src/backend/commands/portalcmds.c @@ -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), -- cgit v1.2.3