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

Function free_stmt

src/pl/plpgsql/src/pl_funcs.c:374–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372
373
374static void
375free_stmt(PLpgSQL_stmt *stmt)
376{
377 switch (stmt->cmd_type)
378 {
379 case PLPGSQL_STMT_BLOCK:
380 free_block((PLpgSQL_stmt_block *) stmt);
381 break;
382 case PLPGSQL_STMT_ASSIGN:
383 free_assign((PLpgSQL_stmt_assign *) stmt);
384 break;
385 case PLPGSQL_STMT_IF:
386 free_if((PLpgSQL_stmt_if *) stmt);
387 break;
388 case PLPGSQL_STMT_CASE:
389 free_case((PLpgSQL_stmt_case *) stmt);
390 break;
391 case PLPGSQL_STMT_LOOP:
392 free_loop((PLpgSQL_stmt_loop *) stmt);
393 break;
394 case PLPGSQL_STMT_WHILE:
395 free_while((PLpgSQL_stmt_while *) stmt);
396 break;
397 case PLPGSQL_STMT_FORI:
398 free_fori((PLpgSQL_stmt_fori *) stmt);
399 break;
400 case PLPGSQL_STMT_FORS:
401 free_fors((PLpgSQL_stmt_fors *) stmt);
402 break;
403 case PLPGSQL_STMT_FORC:
404 free_forc((PLpgSQL_stmt_forc *) stmt);
405 break;
406 case PLPGSQL_STMT_FOREACH_A:
407 free_foreach_a((PLpgSQL_stmt_foreach_a *) stmt);
408 break;
409 case PLPGSQL_STMT_EXIT:
410 free_exit((PLpgSQL_stmt_exit *) stmt);
411 break;
412 case PLPGSQL_STMT_RETURN:
413 free_return((PLpgSQL_stmt_return *) stmt);
414 break;
415 case PLPGSQL_STMT_RETURN_NEXT:
416 free_return_next((PLpgSQL_stmt_return_next *) stmt);
417 break;
418 case PLPGSQL_STMT_RETURN_QUERY:
419 free_return_query((PLpgSQL_stmt_return_query *) stmt);
420 break;
421 case PLPGSQL_STMT_RAISE:
422 free_raise((PLpgSQL_stmt_raise *) stmt);
423 break;
424 case PLPGSQL_STMT_ASSERT:
425 free_assert((PLpgSQL_stmt_assert *) stmt);
426 break;
427 case PLPGSQL_STMT_EXECSQL:
428 free_execsql((PLpgSQL_stmt_execsql *) stmt);
429 break;
430 case PLPGSQL_STMT_DYNEXECUTE:
431 free_dynexecute((PLpgSQL_stmt_dynexecute *) stmt);

Callers 1

free_stmtsFunction · 0.85

Calls 15

free_blockFunction · 0.85
free_assignFunction · 0.85
free_ifFunction · 0.85
free_caseFunction · 0.85
free_loopFunction · 0.85
free_whileFunction · 0.85
free_foriFunction · 0.85
free_forsFunction · 0.85
free_forcFunction · 0.85
free_foreach_aFunction · 0.85
free_exitFunction · 0.85
free_returnFunction · 0.85

Tested by

no test coverage detected