aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/spi.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-03-25 23:42:43 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-03-25 23:42:43 +0000
commit1cc97d175c1493daa6106f7196114141cc4606b7 (patch)
tree3cee7933f3baab293d30c1f6f23de5374aea348a /src/backend/executor/spi.c
parentbf8236526be85bc3f061a918dbf49a28bc9bc220 (diff)
downloadpostgresql-1cc97d175c1493daa6106f7196114141cc4606b7.tar.gz
postgresql-1cc97d175c1493daa6106f7196114141cc4606b7.zip
Make _SPI_execute_plan pass the query source string down to ProcessUtility
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.
Diffstat (limited to 'src/backend/executor/spi.c')
-rw-r--r--src/backend/executor/spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/executor/spi.c b/src/backend/executor/spi.c
index d6127c19d84..655503cd708 100644
--- a/src/backend/executor/spi.c
+++ b/src/backend/executor/spi.c
@@ -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,