2023-12-11 13:53:55 +00:00
|
|
|
DELIMITER $$
|
|
|
|
$$
|
2024-01-23 10:22:59 +00:00
|
|
|
/**
|
|
|
|
* Procedimiento para confirmar los cambios asociados a una transacción
|
|
|
|
*
|
2024-01-23 07:33:15 +00:00
|
|
|
* @param tx BOOL es true si existe transacción asociada
|
|
|
|
*/
|
|
|
|
|
2024-01-23 10:53:12 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `util`.`tx_commit`(IN tx BOOL)
|
2023-12-11 13:53:55 +00:00
|
|
|
BEGIN
|
|
|
|
IF tx THEN
|
|
|
|
COMMIT;
|
|
|
|
END IF;
|
|
|
|
END
|
|
|
|
$$
|
|
|
|
DELIMITER ;
|