]> granicus.if.org Git - postgresql/blobdiff - src/backend/commands/prepare.c
Revert my bad decision of about a year ago to make PortalDefineQuery
[postgresql] / src / backend / commands / prepare.c
index 681647fac56111aaed90f6f2b126425197ebec9a..575dad9fb3fad980b4b635c1f1a46cce4ead2104 100644 (file)
@@ -10,7 +10,7 @@
  * Copyright (c) 2002-2008, PostgreSQL Global Development Group
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/commands/prepare.c,v 1.84 2008/03/26 18:48:59 alvherre Exp $
+ *       $PostgreSQL: pgsql/src/backend/commands/prepare.c,v 1.85 2008/04/02 18:31:50 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -250,9 +250,13 @@ ExecuteQuery(ExecuteStmt *stmt, const char *queryString,
                plan_list = cplan->stmt_list;
        }
 
+       /*
+        * Note: we don't bother to copy the source query string into the portal.
+        * Any errors it might be useful for will already have been reported.
+        */
        PortalDefineQuery(portal,
                                          NULL,
-                                         entry->plansource->query_string,
+                                         NULL,
                                          entry->plansource->commandTag,
                                          plan_list,
                                          cplan);