2024-02-14 07:45:50 +00:00
|
|
|
DELIMITER $$
|
2024-02-15 06:49:57 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`tx_commit`(isTx BOOL)
|
2024-02-14 07:45:50 +00:00
|
|
|
BEGIN
|
|
|
|
/**
|
2024-02-15 06:49:57 +00:00
|
|
|
* Confirma 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-02-15 06:49:57 +00:00
|
|
|
IF isTx THEN
|
2024-02-14 07:45:50 +00:00
|
|
|
COMMIT;
|
|
|
|
END IF;
|
|
|
|
END$$
|
|
|
|
DELIMITER ;
|