]> granicus.if.org Git - postgresql/blobdiff - src/backend/executor/functions.c
Expose more cursor-related functionality in SPI: specifically, allow
[postgresql] / src / backend / executor / functions.c
index 1e1d450be57d2735a03f5b8197fed3d074bf18b0..b59228b0c9ee199112e1a999cded253e936b94da 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/executor/functions.c,v 1.114 2007/04/02 18:49:29 tgl Exp $
+ *       $PostgreSQL: pgsql/src/backend/executor/functions.c,v 1.115 2007/04/16 01:14:56 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -115,7 +115,7 @@ init_execution_state(List *queryTree_list, bool readonly_func)
                if (queryTree->commandType == CMD_UTILITY)
                        stmt = queryTree->utilityStmt;
                else
-                       stmt = (Node *) pg_plan_query(queryTree, NULL);
+                       stmt = (Node *) pg_plan_query(queryTree, 0, NULL);
 
                /* Precheck all commands for validity in a function */
                if (IsA(stmt, TransactionStmt))