1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-05 07:21:24 +03:00

Fix a couple of places that were assuming debug_query_string couldn't

be NULL ... seems an unsafe assumption.
This commit is contained in:
Tom Lane
2006-10-19 19:53:03 +00:00
parent 681892208f
commit 2315df21f8
2 changed files with 7 additions and 4 deletions

View File

@ -14,7 +14,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/portalcmds.c,v 1.56 2006/10/04 00:29:51 momjian Exp $
* $PostgreSQL: pgsql/src/backend/commands/portalcmds.c,v 1.57 2006/10/19 19:53:03 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -113,7 +113,7 @@ PerformCursorOpen(DeclareCursorStmt *stmt, ParamListInfo params)
*/
PortalDefineQuery(portal,
NULL,
pstrdup(debug_query_string),
debug_query_string ? pstrdup(debug_query_string) : NULL,
"SELECT", /* cursor's query is always a SELECT */
list_make1(query),
list_make1(plan),