Ends a failed transaction.
 

1 connection.rollback

<connection.rollback />

Remarks

If any of the operations of a transaction fails, the performed operations in their entirety must be undone to return to the initial state of the database before you start. This is achieved with the element <connection.rollback>.

Example

Ends a failed transaction.

Copy
[...]
<if>
    <expr>
        <ne><m_result />0</ne>
    </expr>
    <then>
        <connection.rollback />
        <delete>
            DELETE ccon_interfase_msg
             WHERE numlot = <p_numlot/>
               AND doclot = <p_doclot/>
               AND tipcla = <p_tipcla/>
        </delete>
        [...]