MCPcopy Create free account
hub / github.com/apache/cloudberry / dump_stmt

Function dump_stmt

src/pl/plpgsql/src/pl_funcs.c:828–919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

826}
827
828static void
829dump_stmt(PLpgSQL_stmt *stmt)
830{
831 printf("%3d:", stmt->lineno);
832 switch (stmt->cmd_type)
833 {
834 case PLPGSQL_STMT_BLOCK:
835 dump_block((PLpgSQL_stmt_block *) stmt);
836 break;
837 case PLPGSQL_STMT_ASSIGN:
838 dump_assign((PLpgSQL_stmt_assign *) stmt);
839 break;
840 case PLPGSQL_STMT_IF:
841 dump_if((PLpgSQL_stmt_if *) stmt);
842 break;
843 case PLPGSQL_STMT_CASE:
844 dump_case((PLpgSQL_stmt_case *) stmt);
845 break;
846 case PLPGSQL_STMT_LOOP:
847 dump_loop((PLpgSQL_stmt_loop *) stmt);
848 break;
849 case PLPGSQL_STMT_WHILE:
850 dump_while((PLpgSQL_stmt_while *) stmt);
851 break;
852 case PLPGSQL_STMT_FORI:
853 dump_fori((PLpgSQL_stmt_fori *) stmt);
854 break;
855 case PLPGSQL_STMT_FORS:
856 dump_fors((PLpgSQL_stmt_fors *) stmt);
857 break;
858 case PLPGSQL_STMT_FORC:
859 dump_forc((PLpgSQL_stmt_forc *) stmt);
860 break;
861 case PLPGSQL_STMT_FOREACH_A:
862 dump_foreach_a((PLpgSQL_stmt_foreach_a *) stmt);
863 break;
864 case PLPGSQL_STMT_EXIT:
865 dump_exit((PLpgSQL_stmt_exit *) stmt);
866 break;
867 case PLPGSQL_STMT_RETURN:
868 dump_return((PLpgSQL_stmt_return *) stmt);
869 break;
870 case PLPGSQL_STMT_RETURN_NEXT:
871 dump_return_next((PLpgSQL_stmt_return_next *) stmt);
872 break;
873 case PLPGSQL_STMT_RETURN_QUERY:
874 dump_return_query((PLpgSQL_stmt_return_query *) stmt);
875 break;
876 case PLPGSQL_STMT_RAISE:
877 dump_raise((PLpgSQL_stmt_raise *) stmt);
878 break;
879 case PLPGSQL_STMT_ASSERT:
880 dump_assert((PLpgSQL_stmt_assert *) stmt);
881 break;
882 case PLPGSQL_STMT_EXECSQL:
883 dump_execsql((PLpgSQL_stmt_execsql *) stmt);
884 break;
885 case PLPGSQL_STMT_DYNEXECUTE:

Callers 1

dump_stmtsFunction · 0.85

Calls 15

dump_blockFunction · 0.85
dump_assignFunction · 0.85
dump_ifFunction · 0.85
dump_caseFunction · 0.85
dump_loopFunction · 0.85
dump_whileFunction · 0.85
dump_foriFunction · 0.85
dump_forsFunction · 0.85
dump_forcFunction · 0.85
dump_foreach_aFunction · 0.85
dump_exitFunction · 0.85
dump_returnFunction · 0.85

Tested by

no test coverage detected