* procedural language
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_funcs.c,v 1.25 2003/03/25 03:16:41 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_funcs.c,v 1.26 2003/05/23 04:08:34 tgl Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
return "fetch";
case PLPGSQL_STMT_CLOSE:
return "close";
+ case PLPGSQL_STMT_PERFORM:
+ return "perform";
}
return "unknown";
static void dump_open(PLpgSQL_stmt_open * stmt);
static void dump_fetch(PLpgSQL_stmt_fetch * stmt);
static void dump_close(PLpgSQL_stmt_close * stmt);
+static void dump_perform(PLpgSQL_stmt_perform * stmt);
static void dump_expr(PLpgSQL_expr * expr);
case PLPGSQL_STMT_CLOSE:
dump_close((PLpgSQL_stmt_close *) stmt);
break;
+ case PLPGSQL_STMT_PERFORM:
+ dump_perform((PLpgSQL_stmt_perform *) stmt);
+ break;
default:
elog(ERROR, "plpgsql_dump: unknown cmd_type %d\n", stmt->cmd_type);
break;
printf("CLOSE curvar=%d\n", stmt->curvar);
}
+static void
+dump_perform(PLpgSQL_stmt_perform * stmt)
+{
+ dump_ind();
+ printf("PERFORM expr = ");
+ dump_expr(stmt->expr);
+ printf("\n");
+}
+
static void
dump_exit(PLpgSQL_stmt_exit * stmt)
{