We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentefb6212 commitb31aa64Copy full SHA for b31aa64
src/pl/plpgsql/src/pl_exec.c
@@ -3,7 +3,7 @@
3
* procedural language
4
*
5
* IDENTIFICATION
6
- * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.11 1999/05/25 16:15:17 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.12 1999/07/04 01:03:01 tgl Exp $
7
8
* This software is copyrighted by Jan Wieck - Hamburg.
9
@@ -2477,7 +2477,7 @@ exec_simple_check_plan(PLpgSQL_expr * expr)
2477
* execution plan
2478
* ----------
2479
*/
2480
-if (spi_plan->ptlist==NULL||length(spi_plan->ptlist)!=1)
+if (length(spi_plan->ptlist)!=1)
2481
return;
2482
2483
plan= (Plan*)lfirst(spi_plan->ptlist);
@@ -2486,6 +2486,9 @@ exec_simple_check_plan(PLpgSQL_expr * expr)
2486
* 2. It must be a RESULT plan --> no scan's required
2487
2488
2489
+if (plan==NULL)/* utility statement produces this */
2490
+return;
2491
+
2492
if (nodeTag(plan)!=T_Result)
2493
2494