]> granicus.if.org Git - postgresql/commitdiff
Make _SPI_execute_plan pass the query source string down to ProcessUtility
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 25 Mar 2007 23:42:43 +0000 (23:42 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 25 Mar 2007 23:42:43 +0000 (23:42 +0000)
if possible.  I had left this undone in the first pass at the API change
for ProcessUtility, but forgot to revisit it after the plancache changes
made it possible to do it.

src/backend/executor/spi.c

index d6127c19d84e98a44c4aa1140c67689038eebf89..655503cd708e94014bac92ba1bbd92624108afa7 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/executor/spi.c,v 1.174 2007/03/25 23:27:59 tgl Exp $
+ *       $PostgreSQL: pgsql/src/backend/executor/spi.c,v 1.175 2007/03/25 23:42:43 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -1548,7 +1548,7 @@ _SPI_execute_plan(SPIPlanPtr plan, Datum *Values, const char *Nulls,
                                else
                                {
                                        ProcessUtility(stmt,
-                                                                  NULL, /* XXX provide query string? */
+                                                                  plansource->query_string,
                                                                   paramLI,
                                                                   false,                               /* not top level */
                                                                   dest,