10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cbcfca commit 711804fCopy full SHA for 711804f
src/pl/plpgsql/src/pl_funcs.c
@@ -8,7 +8,7 @@
8
*
9
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_funcs.c,v 1.88 2010/01/19 01:35:31 tgl Exp $
+ * $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_funcs.c,v 1.89 2010/02/17 01:48:45 tgl Exp $
12
13
*-------------------------------------------------------------------------
14
*/
@@ -543,10 +543,13 @@ dump_fori(PLpgSQL_stmt_fori *stmt)
543
printf(" upper = ");
544
dump_expr(stmt->upper);
545
printf("\n");
546
- dump_ind();
547
- printf(" step = ");
548
- dump_expr(stmt->step);
549
- printf("\n");
+ if (stmt->step)
+ {
+ dump_ind();
+ printf(" step = ");
550
+ dump_expr(stmt->step);
551
+ printf("\n");
552
+ }
553
dump_indent -= 2;
554
555
dump_stmts(stmt->body);
0 commit comments