2024-02-14 07:45:50 +00:00
|
|
|
DELIMITER $$
|
2024-06-04 14:43:09 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`tx_rollback`(vIsTx BOOL)
|
2024-02-14 07:45:50 +00:00
|
|
|
BEGIN
|
|
|
|
/**
|
2024-02-15 06:49:57 +00:00
|
|
|
* Deshace los cambios asociados a una transacción.
|
2024-02-14 07:45:50 +00:00
|
|
|
*
|
2024-02-15 06:49:57 +00:00
|
|
|
* @param isTx es true si existe transacción asociada
|
2024-02-14 07:45:50 +00:00
|
|
|
*/
|
2024-06-04 14:43:09 +00:00
|
|
|
IF vIsTx THEN
|
2024-02-14 07:45:50 +00:00
|
|
|
ROLLBACK;
|
|
|
|
END IF;
|
|
|
|
END$$
|
|
|
|
DELIMITER ;
|