File tree 1 file changed +6
-1
lines changed 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/backend/executor/functions.c,v 1.86 2004/08/29 05:06:42 momjian Exp $
11
+ * $PostgreSQL: pgsql/src/backend/executor/functions.c,v 1.87 2004/09/06 18:10:38 tgl Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
@@ -285,6 +285,11 @@ postquel_getnext(execution_state *es)
285
285
286
286
if (es -> qd -> operation == CMD_UTILITY )
287
287
{
288
+ /* Can't handle starting or committing a transaction */
289
+ if (IsA (es -> qd -> parsetree -> utilityStmt , TransactionStmt ))
290
+ ereport (ERROR ,
291
+ (errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
292
+ errmsg ("cannot begin/end transactions in SQL functions" )));
288
293
ProcessUtility (es -> qd -> parsetree -> utilityStmt , es -> qd -> params ,
289
294
es -> qd -> dest , NULL );
290
295
return NULL ;
You can’t perform that action at this time.
0 commit comments