| 980 | } |
| 981 | |
| 982 | static void |
| 983 | dump_if(PLpgSQL_stmt_if *stmt) |
| 984 | { |
| 985 | ListCell *l; |
| 986 | |
| 987 | dump_ind(); |
| 988 | printf("IF "); |
| 989 | dump_expr(stmt->cond); |
| 990 | printf(" THEN\n"); |
| 991 | dump_stmts(stmt->then_body); |
| 992 | foreach(l, stmt->elsif_list) |
| 993 | { |
| 994 | PLpgSQL_if_elsif *elif = (PLpgSQL_if_elsif *) lfirst(l); |
| 995 | |
| 996 | dump_ind(); |
| 997 | printf(" ELSIF "); |
| 998 | dump_expr(elif->cond); |
| 999 | printf(" THEN\n"); |
| 1000 | dump_stmts(elif->stmts); |
| 1001 | } |
| 1002 | if (stmt->else_body != NIL) |
| 1003 | { |
| 1004 | dump_ind(); |
| 1005 | printf(" ELSE\n"); |
| 1006 | dump_stmts(stmt->else_body); |
| 1007 | } |
| 1008 | dump_ind(); |
| 1009 | printf(" ENDIF\n"); |
| 1010 | } |
| 1011 | |
| 1012 | static void |
| 1013 | dump_case(PLpgSQL_stmt_case *stmt) |
no test coverage detected