Skip to main content

switch_core_db_finalize

Function switch_core_db_finalize 

Source
pub unsafe extern "C" fn switch_core_db_finalize(
    pStmt: *mut switch_core_db_stmt_t,
) -> c_int
Expand description

This function is called to delete a compiled SQL statement obtained by a previous call to switch_core_db_prepare(). If the statement was executed successfully, or not executed at all, then SWITCH_CORE_DB_OK is returned. If execution of the statement failed then an error code is returned.

This routine can be called at any point during the execution of the virtual machine. If the virtual machine has not completed execution when this routine is called, that is like encountering an error or an interrupt. (See switch_core_db_interrupt().) Incomplete updates may be rolled back and transactions cancelled, depending on the circumstances, and the result code returned will be SWITCH_CORE_DB_ABORT.